Build a Versioned In-Memory Database

Read the full interview experience this question came from →

Quick Overview

Implement a versioned in-memory database with TTL-aware writes, tombstones, prefix scans, and historical reads. The exercise emphasizes deterministic same-timestamp ordering, atomic validation, indexed per-key history, and clear performance trade-offs.

Build a Versioned In-Memory Database

Company: Anthropic

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Onsite

Overview: Implement a versioned in-memory database with TTL-aware writes, tombstones, prefix scans, and historical reads. The exercise emphasizes deterministic same-timestamp ordering, atomic validation, indexed per-key history, and clear performance trade-offs.

Read the full Anthropic Software Engineer interview experience this question came from

|Home/Coding & Algorithms/Anthropic
Anthropic logo
Anthropic
Jul 8, 2026
hardSoftware EngineerOnsiteCoding & Algorithms
29
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...