Well. I've solved it independently hacking a hashmap that also maintains its
access order in a LinkedList in the get, put and remove calls. A pity about
the remove being o(n) but i couldn't find a way to iterate over the
LinkedHashSet in reverse order (which was kinda the point anyway, since
LinkedHashMap is built on LinkedHashSet)

Reply via email to