Skip to content

Breadth First Tree Traversal: Let traverseLevel return early if node is null #878

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 1 commit into from
Jan 24, 2022
Merged

Conversation

Worldwidebrine
Copy link
Contributor

Breadth First Tree Traversal:

  • Let traverseLevel return early if node is null
  • Replace node == null with node === null

@raklaptudirm raklaptudirm merged commit 31b06c9 into TheAlgorithms:master Jan 24, 2022
@Worldwidebrine Worldwidebrine deleted the patch-1 branch January 24, 2022 09:48
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