Print Edge Nodes (Boundary) of a Binary Tree | LeetCode Print all edge nodes of a complete binary tree...

Please Visit: http://ift.tt/1ajReyV



Print Edge Nodes (Boundary) of a Binary Tree | LeetCode



Print all edge nodes of a complete binary tree anti-clockwise.

That is all the left most nodes starting at root, then the leaves left to right and finally all the rightmost nodes.

In other words, print the boundary of the tree.

Variant: Print the same for a tree that is not complete.

http://ift.tt/WhR8Zo

http://ift.tt/1t1QdXk



Print Edge Nodes (Boundary) of a Binary Tree | LeetCode







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mhMtvl

via LifeLong Community

No comments:

Post a Comment