Implement a set of objects as a TreeMap<Integer, LinkedList<Object>>
, mapping hash codes to linked lists of elements.
Add new elements to the front of the linked lists.
Remove empty linked lists.
You may not change the instance variables of the Set
or SetIterator
class.