Time-Based Key-Value Store (set/get by timestamp)

CodingCitadelLast reported February 2026Low Frequency
Reported
2× across candidate reports
First seen
January 2026
Last reported
February 2026
Reported outcome
unknown

Problem Overview

Implement a store with two functions: - set(key, val, timestamp) records val for key at that time. - get(key, timestamp) returns the value for key at that time. If nothing was set exactly then, it returns the most recent value set before it. Keep a separate timeline for each key.…

  • The rest of the problem statement — full requirements, constraints, and edge cases
  • Approach and trade-offs — what passing candidates did, and the mistakes that sink people
Unlock the full Citadel catalog
Full problem statements, candidate-reported follow-ups, and walkthroughs — for every Citadel question.
Unlock with Pro
Already a member? Sign in
Verified Source
Every question is reconstructed from multiple independent candidate reports. Verbatim follow-ups, not invented ones.
Codex Fact-Checked
Technical claims, formulas, and scale numbers are reviewed against primary sources.
Interviewer Follow-ups
The exact follow-ups reported by candidates, with the trigger that prompts each one — plus the mistakes that sink people.
Is this helpful?