Time-based Key-Value Store

Design a time-based key-value store TimeMap supporting two operations:

  • set(key, value, timestamp): store value for key at timestamp.
  • get(key, timestamp): return the value of the recor...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: