Complete the following problems.
Problem 1
This is not a valid binary search tree. What is wrong with it?
32
/ \
16 45
/ \
5 38
Problem 2
Use the Binary Search Tree insertion algorithm to insert the keys: 1, 2, 3, 4, 5, 6, 7 into an initially empty BST (in that order!).
Height
What is the height of the tree?
Problem 2
To determine the number of steps, count all assignments to sum.
Problem 3
Problem 4
Consider the following code: