← Amazon questions

Implement LRU Cache

Filed under Amazon · Also reported at Atlassian, Cisco, Dailyhunt, Deutsche Bank, Flipkart, GE Digital, GoComet, Goldman Sachs and 16 more

The question

Design and implement a data structure for Least Recently Used (LRU) Cache with get and put operations in O(1) time.

No write-up yet. Related questions below have one.

Related Amazon questions

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