algs4-py icon indicating copy to clipboard operation
algs4-py copied to clipboard

Implement non-recursive version of DFS

Open hamzakat opened this issue 1 year ago • 0 comments

It is tested and its output is identical with the normal DFS. Note: I added peek() method to Stack class to use it in this iterative version of DFS (as in the original textbook's Stack API)

hamzakat avatar Sep 26 '22 06:09 hamzakat