← Flipkart questions
Low-Level DesignReported in a candidate post, Jul 2025

Implement an LRU cache and explain its data structures

Filed under Flipkart

Implement an LRU (least recently used) cache with a fixed capacity, supporting get(key) and put(key, value) in O(1) time, and explain the data structures you used.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Flipkart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.