AlgoMaster Logo

Boundary of Binary Tree

tree=[1, null, 2, null, null, 3, 4]
0 / 9
Step:Start: walk the tree's outline anticlockwise from the root
1
boundaryOfBinaryTree(Node(1))