Back to QuestionsPractice with This Question
Time-Based Key-Value Store
60.8K views•Asked 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.