Hi,
Please suggest me how to check a given tree is balanced using the height of tree.
we need to use the avl tree concept.
i.e, the difference between height of any left or right subtree is atmost 1.
i have written the code for inserting the node, but this one i can't understand .