Bloomberg Interview Question

Design and implement a data structure to store the most recent visited urls. No duplicates allowed.

Interview Answers

Anonymous

Oct 26, 2017

similar to LRU, use DoubleLinkedList and HashMap.

Anonymous

Nov 27, 2017

how about using LinkedHashMap and overriding "removeEldestEntry"?