1 Read question2 Draft response3 Review notes
Databricks · Coding
Durable Key-Value Store
Must priorityMedium
The questionDesign and implement a thread-safe, persistent key-value store with durability guarantees
Executable browser contract: Implement VersionedStore.set(key, value, timestamp) and get(key, timestamp). Writes may arrive out of order. get returns the value with the greatest timestamp <= the query, or None. A write at an existing key/timestamp replaces that value.
Try a first passNo account required. Nothing you type here is sent or saved.
Ready to work it, not just read it?Create an anonymous workspace to open the right editor, save your attempt, and track this question.
Practice this question free →