Depth First Search (DFS)
In a Nutshell
Typically used on graphs or trees represented as adjacency lists or hash maps.
Explores a tree/graph data structure as deep as possible before backtracking.
Useful when you want to check if a path exists, not necessarily the shortest...
learncodedaily.hashnode.dev4 min read