Skip to content

Instantly share code, notes, and snippets.

@nikhilc2710
Created January 19, 2021 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikhilc2710/5ac20885745747d34f1d68da5cec3d92 to your computer and use it in GitHub Desktop.
Save nikhilc2710/5ac20885745747d34f1d68da5cec3d92 to your computer and use it in GitHub Desktop.
import collections
def bfs(maze,start):
queue = collections.deque()
queue.append(start)
seen = set([start])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment