Back to Questions

Implement a Map with Time Expiration

75.5K viewsAsked 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.

Practice with This Question
Implement a Map with Time Expiration - Interview Question