Binary Tree Boundary Traversal

Binary Tree Boundary Traversal

Hint: Problem is divided into three sections

  • Left side view
  • Leaf view from left to right
  • Right side view

Latest Source Code:
Github: BinaryTreeBoundaryTraversal.java


Output:

        20               
      / \       
     /   \      
    /     \     
   /       \    
   8       22       
  / \       \   
 /   \       \  
 4   12       25   
    / \         
    10 14         
                                
Boundary Traversal: 20 8 4 10 14 25 22 
Author: Hrishikesh Mishra