Hi,
i looked at the source code and understand it very well located on
http://geeksforgeeks.org/?p=2686
how can i insert the new nodes in the tree with such tree logic?
A
when A refers B, then B will go on A's level 1 since it's empty like this:
A
B
Now if A refers C, then the matrix will look like this:
A
B C
Now if A refers D, then D will go under B like this:
...