First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. George Carrette
Write a program to Print Binary Tree in Vertical Order.
If two nodes have the same Horizontal Distance then they are on the same vertical line. Print the values from the first vertical line, second vertical line and more.
All Binary Tree Values: 4 8 10 12 14 20 22 Print Values from Binary tree perimeter: 20,12 8,10 4 14,22