Implement an LRU Cache
Asked at Zip · Coding Questions · Difficulty: Medium
Implement a **Least Recently Used (LRU) cache**: a store of key-value pairs with a fixed capacity that, when it is full and a new key arrives, discards the entry that has gone unused the longest. Both reading and writing a key count as using it.
Loading the problem…
More Zip interview questions
- Implement Functions with AST and Find Tree Roots
- Implement a Vending Machine with Bill Insertion and Change-Making (OOD)
- Furthest Building Reach with Bricks and Ladders Usage Steps
- Modified Stock Trading
- Maximum Sub Sentence Using Prefix Tree
- Poker Hand Combinations Generator