Depth-first search in 4 minutes.

Code: https://github.com/msambol/dsa/blob/master/search/depth_first_search.py

Sources:
1. Introduction To Algorithms, Third Edition (CLRS) [https://www.amazon.com/Introduction-Algorithms-3rd-MIT-Press/dp/0262033844]
2. https://en.wikipedia.org/wiki/Depth-first_search

LinkedIn: https://www.linkedin.com/in/michael-sambol

Source

ClicGo Demo