Code
Loading editor...
Tap Analyze to see visualization
Click Analyze to visualize
See step-by-step execution, variables, and output
Variables
Run code to see variables
Output
Console output will appear here
Click Analyze to visualize
See step-by-step execution, variables, and output
Run code to see variables
Console output will appear here
Store entries per key in timestamp-sorted order (set calls are already chronological). On get, binary search the entries for the largest timestamp that does not exceed the query timestamp.
Values for each key are stored in timestamp order. Binary search finds the rightmost entry with timestamp <= the query timestamp.
Updated Feb 2026