1. Repeat the previous exercise, but instead write recursive versions of the methods add, remove, and get Value.
2. Segment 21.20 describes the inner class Key Iterator. An instance of this class is an iterator that traverses the search keys in the dictionary. In a similar fashion, the inner class Value Iterator provides a way to traverse the dictionary’s values. Write definitions for these two inner classes of the class SortedLinkedDictionary.
3. Define an iterator for the ADT dictionary that returns entries containing both a search key and a value. Describe the class of these entries. Implement a method getEntryIterator that returns such an iterator.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here