Back to QuestionsPractice with This Question
Design a Simple LRU Cache using Python/Java built-ins
86.7K views•Asked at Google•
Easy
Question Explain
Implement an LRU cache using language-specific ordered dictionary structures (e.g., Python's `OrderedDict` or Java's `LinkedHashMap`) to maintain the $O(1)$ complexity requirement.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.