LRU Cache (with TTL and LFU Follow-ups)
Asked at ByteDance · Coding Questions · Difficulty: Medium · Last asked Jun 16, 2026
Implement a fixed-capacity **LRU (Least Recently Used) cache** supporting `get` and `put` in average `O(1)`.
Loading the problem…
More ByteDance interview questions
- Project Deep Dive (Resume Drill)
- Video-Keyword Association Review System
- Realtime Auction Bidding System
- MLE Oral Fundamentals: Dropout, Overfitting, Normalization, Loss Functions
- Content Moderation System Design
- ML System Design: Dynamic K in Retrieval Stage