medium10 pts · first answer countshash-mapdesignbinary-search
Key-value store with timestamps
set(key, value, t) stores a version, and get(key, t) returns the latest value with timestamp <= t. Timestamps arrive in increasing order. What is the efficient design?
Discussion 0
Join free to post in the discussion.
Related questions
- Precondition for binary searchBackend Developer
- Safe midpoint in binary searchBackend Developer
- Steps to find a value by binary searchBackend Developer
- Average cost of a hash map lookupBackend Developer
- Worst case for a hash map lookupBackend Developer
- Removing duplicates with a SetBackend Developer
- Number keys in a plain objectBackend Developer
- Iteration order of a MapBackend Developer