Back to QuestionsPractice with This Question
Implement a Map with Time Expiration
75.5K views•Asked at Uber•
Hard
Question Explain
Design a map that supports standard `put` and `get` operations, but each key-value pair automatically expires after a given Time-To-Live (TTL).
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.