Skip to content

Correct the wrong iterative DFS implementation #867

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 4, 2019
Merged

Correct the wrong iterative DFS implementation #867

merged 2 commits into from
Jun 4, 2019

Conversation

ZJUGuoShuai
Copy link
Contributor

The old iterative DFS is wrong. The order it explores the graph is not in a DFS way. I think my code is correct.

Reference:

@poyea
Copy link
Member

poyea commented Jun 4, 2019

Thank you for your pull request!🤩

@poyea poyea merged commit f9b8dbf into TheAlgorithms:master Jun 4, 2019
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.

2 participants