Write a binary search tree method that takes two keys, low and high, and prints all elements X that are in the range specified by low and high. Your program should run in O(K + log N) average time, where K is the number of keys printed. Thus if K is small, you should be examining only a small part of the tree. Use a hidden recursive method and do not use an inorder iterator. Bound the running time of your algorithm.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here