Pregunta de entrevista de Bloomberg

Implement an LRU cache.

Respuesta de la entrevista

Anónimo

27 dic 2016

Straight-forward solution with a hashmap and a linked list. Also mentioned that Java has this already implemented in the LinkedHashMap class.