Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. // to_vist = []; visited = []; end = Z
  2. // in current position X
  3. // possible moves from X are Y[0] to Y[7]
  4. // if Y[N] in visited then skip
  5. // if Y[N] is valid then add to to_visit
  6. // pop head of to_visit as new X
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement