what do u mean by height of a node exactly ... can u give examples
like height (6) = 1 height(10) = 2 ??? what ever be the thing the trick lies in identifying the leaf level... which can be done by (node->left->right == node ) this check. if it is true we are at the leaf level ... On Dec 18, 11:48 am, richa <[email protected]> wrote: > . 10 > 6 12 > > 4-> 5 <-------->11<-----> 13 <-- > |_______________________| > (I have tried my best!) > Ok.. In the BST you have the leaf nodes connected to form a doubly LL. > Given a node, identify its height -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
