Example 1
- Input
- ["TimeMap", "set", "get", "get", "set", "get", "get"] [[], ["foo", "bar", 1], ["foo", 1], ["foo", 3], ["foo", "bar2", 4], ["foo", 4], ["foo", 5]]
- Output
- [null, null, "bar", "bar", null, "bar2", "bar2"]
Saving bar at time 1 answers queries at times 1 and 3; after saving bar2 at time 4, queries at times 4 and 5 answer bar2.