Back to QuestionsPractice with This Question
Design a Time Map (TreeMap/Sorted Map)
74.9K views•Asked at Google•
Medium
Question Explain
Design a data structure that stores a key-value pair and a timestamp. Retrieve the value for a key at a given timestamp (the latest value less than or equal to the given timestamp).
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.