Created
January 19, 2021 02:45
-
-
Save nikhilc2710/5ac20885745747d34f1d68da5cec3d92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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