Time-Based Key-Value Store
Medium
Time-Based Design Problems
Support 'set key value time' and 'get key time' (returns the value with the largest timestamp <= time, or empty). Timestamps for a key are increasing.
Constraints
1 <= q <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.