1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
What is the number of function calls for the recursive function
print(node* Tree)
to print the data of the
BST
in the picture above ?
Bonus: How can you generalize your solution for any BST ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Output: