Problem 6 (15%). Let T be a balanced BST storing a set S of n integers. • Give an algorithm to find the smallest integer
Posted: Sat May 14, 2022 3:25 pm
Problem 6 (15%). Let T be a balanced BST storing a set S of n integers. • Give an algorithm to find the smallest integer of S in O(log n) time. • Give an algorithm to find the second smallest integer of S in O(log n) time. • Give an algorithm to find the third smallest integer of S in O(log n) time.