SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top