Time Based Key-Value Store

Try to solve the Time Based Key-Value Store problem.

Statement

Implement a data structure that can store multiple values of the same key at different timestamps and retrieve the key’s value at a certain timestamp.

You’ll need to implement the TimeStamp class. This class has the following functions:

  • Init(): This function initializes the values dictionary and timestamp ...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy