"The Findkth() function returns the kth highest element in a binary search tree."
What do they mean the kth HIGHEST?
- the kth biggest number?
- or the kth highest in the tree? there kan be more than one.
- looks like no parameters passed in. Findkth()
- I'm confused.
template<class elemType>int SearchTreeType<elemType>::Findkth(){//your code goes here //..//...return kth //where kth is the variable that contains the info of the biggest node}
NB! The node containing the biggest info will always be on the left subtree (child)