Re: [algogeeks] finding nth element of a tree without using recursion..

2009-11-25 Thread Raghavendra Sharma
what is nth element of a tree u mean nth element in the inorder traversal? @sharad what are u trying to do with this code?? On Fri, Nov 6, 2009 at 4:01 PM, sharad kumar wrote: > stackst; > start with root > ptr=root; > while(ptr!=null&&count!=k) > { > st.push(ptr); > ++count; > if(ptr->left!=null

[algogeeks] finding nth element of a tree without using recursion..

2009-11-06 Thread naren
can anyone help me to solve this..how can we find nth element of a tree without using recursion -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. For more options, visit this grou