Time Based Key-Value Store
Try to solve the Time Based Key-Value Store problem.
Statement
Design 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.
Implement a struct, TimeStamp, which should provide the following functionalities:
-
NewTimeStamp(): This function initializes the values dictionary and ...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy