Skip to content

tree-breadth-first#32

Open
monaSalih wants to merge 6 commits into
mainfrom
tree-breadth-first
Open

tree-breadth-first#32
monaSalih wants to merge 6 commits into
mainfrom
tree-breadth-first

Conversation

@monaSalih

@monaSalih monaSalih commented Nov 1, 2021

Copy link
Copy Markdown
Owner
  • create new file for bfs
  • create bfs method
  • make instance from queue
  • loop while peek become null
  • delete front node and store it in variable and add to list
  • check left side and right side was empty
  • return list after tree become null "empty"

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