Time-based Key-Value Store (OA final part)

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

  • set key value timestamp: store value for key at timestamp. Timestamps may arrive out of order; if the same key already has a v...

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: