Skip to content

dezson/maze-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

maze-problem

❓ Maze solving algorithm using DFS

How do you solve a maze?

DFS is a common way to approach solving maze-like problems. First we selec a path in the maze and we follow it until we hit a dead end or reach the finishing point of the maze. If a given path doesn't work, we backtrack and take an alternative path from a past junction, and try that path.

Analysis: Time complexity: O(|V| + |E|) Space complexity: O(|V|)

About

❓ Maze solving algorithm using DFS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages