tree-traversals
Last updated
Last updated
Process of visiting each node in a tree exactly once
Print node
Traverse left
Traverse right
Use “Data , Left , Right” to mark the nodes to see which path to go
Traverse left
Print node
Traverse right
output is in order 1 to 19
Use “ Left , Data , Right” to mark the nodes to see which path to go
Traverse left
Traverse right
Print node
Use “ Left , Right , Data ” to mark the nodes to see which path to go
Traverse level by level
Uses a FIFO Queue