Find exist in maze or prove its non existence.
Anonymous
Keep an structure (array / binari Tree/ hash table) to "remember" if a "node" has been use to avoid loop. Building a graph and nodes to navigate trough the maze and track back on your node until you reach your first node that have no more "start node" or you have found the "exit node"
Check out your Company Bowl for anonymous work chats.