Time Based Key-Value Store at Instacart
Medium49.7% acceptance
This problem has 87.5% frequency at Instacart.
Problem Description
Design a time-based key-value data structure that can store multiple values for the same key at different time stamps and retrieve the key's value at a certain timestamp. Implement the `TimeMap` class: * `TimeMap()` Initializes the object of the data structure. * `void set(String key, String v...
Read full problem and hintsTopics
Also asked at 31 companies
More Instacart Questions
Check if Every Row and Column Contains All NumbersEasyFind First and Last Position of Element in Sorted ArrayMediumWildcard MatchingHardFind the Length of the Longest Common PrefixMediumValid SudokuMedium
View all Instacart questions