Advertisement
nguyentruong98

Untitled

Dec 8th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. pushQueue(q, start);
  2.       while(q->head != NULL)
  3.       {
  4.             q->head = frontQueue(q);
  5.             popQueue(q);
  6.       }
  7.       for(int i = 1; i <= n; i++){
  8.             if(map[n+1][m+1] == 1)
  9.             pushQueue(q, i);
  10.             if(map[n+1][m+1] == end)
  11.             break;
  12.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement