Problem 981 · Medium

Time Based Key-Value Store

Store each key with increasing timestamps, and look up the latest value at or before a given time by binary search.

Open the interactive visualisation