nguyentruong98

Untitled

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