Skip to content
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

Implemented Level order traversal #1392

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

di-was
Copy link

@di-was di-was commented May 10, 2024

Description of Change

Added a detailed implementation of level order traversal, also known as Breadth-First Search (BFS), for a binary tree. The provided code systematically traverses every node in the tree, visiting all nodes at a particular level before moving to the next level. It starts from the root node and explores all of its neighbors at the present depth level before moving to the nodes at the next level.

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes: BFS

@di-was di-was changed the title Level order traversal added Implemented Level order traversal added May 11, 2024
@di-was di-was changed the title Implemented Level order traversal added Implemented Level order traversal May 11, 2024
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.

None yet

1 participant