Skip to content

Implement non-recursive version of DFS#9

Open
hamzakat wants to merge 3 commits intoshellfly:masterfrom
hamzakat:non-rec-dfs
Open

Implement non-recursive version of DFS#9
hamzakat wants to merge 3 commits intoshellfly:masterfrom
hamzakat:non-rec-dfs

Conversation

@hamzakat
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant