Back to Question
Design a Time Map (TreeMap/Sorted Map)
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
Click "Start Speaking" and answer the question naturally.