LRU Cache (LeetCode #146) Describe how to implement a LRU Cache.
Anonymous
Use an ordered hashmap (OrderedDict in Python, Map in JavaScript). Alternatively, use a hashmap and a doubly-linked list.
Check out your Company Bowl for anonymous work chats.