Nth largest element in a binary search tree

Posted by Codenotguru on Stack Overflow See other posts from Stack Overflow or by Codenotguru
Published on 2010-04-10T05:24:29Z Indexed on 2010/04/10 5:33 UTC
Read the original article Hit count: 347

Filed under:
|

How to find the Nth largest node in a BST?

Do I keep a count variable while doing In Order Traversal of a BST? Return the element when the count = N???

© Stack Overflow or respective owner

Related posts about binary-trees

Related posts about homework