Search:
Forum
General C++ Programming
Displaying last TWO largest in a binary
Displaying last TWO largest in a binary search tree???
Dec 12, 2013 at 11:06pm UTC
IADPCFEVER
(5)
How would I display the last two largest nodes in a binary search tree
recursively???? I don't know how to approach this, and would like some help. Thanks!
Dec 13, 2013 at 7:33am UTC
Smac89
(1727)
pseudocode:
1
2
3
4
5
6
7
8
9
a = root b = 0
while
a != 0 and a=>right != 0: b = a a = a=>right print a print b
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs