Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. bool checkSimpleWay(int source, int dest) {
  2.     for (int i = 1; i < v[source].size(); i++) {
  3.         for (int j = 1; j < v[i].size(); j++) {
  4.             if (i == j) continue;
  5.  
  6.             if (v[i] == dest) {
  7.                 return true;
  8.             }
  9.         }
  10.     }
  11.     return false;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement