Binary Search Tree Activity
Categories:
3 minute read
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:
Problem 5
Problem 6
Last modified March 13, 2025: Update deploy.yml to not auto update and v4 of cache (a9051ec)