Write optimized code for LRU Cache
Filed under Amazon
The question
Implement an efficient Least Recently Used (LRU) Cache supporting 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.