Finding Height of ALL nodes in Binary Search Tree

Status
Not open for further replies.

ECE12

Newbie level 4
Joined
Oct 7, 2011
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,344
Does anyone have pseudo code for the procedure of finding the height of all the nodes in a binary search tree? Searching online, I have found some code that could help me find the height of an entire BST, but not for how many nodes are at a specific height. I just need some pseudo code to get my brain thinking right.


Thanks.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…