I am looking for any information on the LevelOrder Tranverse. Can anyone help me out on that?
I am looking for any information on the LevelOrder Tranverse. Can anyone help me out on that?
1. Push the head on a queue.
2. Pop the queue and push the children of the popped node on the queue.
3. Process the popped node (ie. show it on the screen).
4. Go back to 2 until there are no more nodes in the queue.
- lmov
That's also called breadth first traversal right?