Back to Questions

Time-Based Key-Value Store

60.8K viewsAsked at Apple
Medium

Question Explain

Design a time-based key-value data structure that stores a key, value, and timestamp. The `get` operation must return the value set at the largest timestamp less than or equal to the given timestamp. Use a HashMap of Sorted Maps/Arrays.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question