Question: Consider the partial implementation of a Binary Search Tree class. For simplicity, each Node stores only the key. Add a public member function to class

Consider the partial implementation of a Binary Search Tree class. For simplicity, each Node stores only the key. Add a public member function to class BST that returns the size of the tree (i.e, the number of the nodes).(Hint: think recursion!) template
Step by Step Solution
There are 3 Steps involved in it
To add a function that returns the size of the tree we use a recursive helper function that traverse... View full answer
Get step-by-step solutions from verified subject matter experts
