Daily iOS
CS fundamentals and algorithmsDeloitteinterview report

O(1) LRU cache

You're designing an LRU cache that keeps only recently used items. To make get and put average O(1), what does the HashMap do and what does the doubly linked list do?

Submit