m2skills

levelwise op

Jun 3rd, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Level wise traversal of the above binary tree is :
  2. NODES at level 0 are : 1
  3. NODES at level 1 are : 2 3
  4. NODES at level 2 are : 4 5 6
  5. NODES at level 3 are : 7 8
  6. NODES at level 4 are : 9 11
  7. NODES at level 5 are : 10
  8. Process finished with exit code 0
Add Comment
Please, Sign In to add comment