← Paytm questions
Low-Level DesignReported in a candidate post, Mar 2026

LRU cache with O(1) operations, thread safe

Filed under Paytm

Write complete working code for an LRU cache with O(1) get and put, and explain how to make it thread safe. Describe the data structures and the locking choices.

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 Paytm questions

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