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 hints

Topics

Also asked at 31 companies


More Instacart Questions

View all Instacart questions