In-Memory Key-Field Store with Expiring Entries and Snapshots
Medium · Coding & Algorithms · Software Engineer · Online Assessment
Problem Statement
Build an in-memory two-level dictionary store where each top-level key maps to named field entries holding string values, with per-field expiration deadlines and point-in-time snapshots. Every call supplies the current clock value timestamp as an integer that never decreases from one call to the next.
Implement a class InMemoryDB supporting five operations, together with the replay function run_in_memory_db(operations: List[str], arguments: List[List]) -> List:
set(timestamp: int, key: str, field: str, value: str, ttl: int = 0) -> None— Storesvalueat(key, field). Whenttl > 0, the entry stays readable during[timestamp, timestamp + ttl)and becomes expired once the clock reachestimestamp + ttl. Whenttl == 0(the default if omitted), the entry has no expiration deadline. Writing to an already-present(key, field)replaces its string and resets or removes its deadline.get(timestamp: int, key: str, field: str) -> Optional[str]— Looks up(key, field)attimestamp, returning its string if present and still unexpired (timestamp < deadline), orNoneif absent or expired (timestamp >= deadline).delete(timestamp: int, key: str, field: str) -> bool— Erasesfieldfromkey, returningTrueonly when that field was present and unexpired attimestamp(Falseotherwise).backup(timestamp: int) -> int— Captures an independent checkpoint containing all entries that are unexpired attimestamp, assigns it the next integer ID in1, 2, 3, ..., and returns that ID.restore(timestamp: int, backup_id: int) -> bool— Replaces the live store with checkpointbackup_idand returnsTrue, or leaves live data untouched and returnsFalsewhenbackup_iddoes not match an existing checkpoint. Restored entries keep the exact wall-clock expiration deadlines computed when they were originally written: any entry whose deadline is<= timestampis already expired upon restoration, and later writes must not alter saved checkpoints.
run_in_memory_db(operations, arguments) starts with an empty InMemoryDB, dispatches each operations[i] with argument list arguments[i] (for "set", arguments[i] has length 4 when ttl defaults to 0, or length 5 when ttl is supplied), and returns the list of outputs (None for every "set").
Examples
Example 1
Input:
operations = [
"set", "set", "get", "backup",
"set", "delete", "get",
"restore", "get", "get", "get"
]
arguments = [
[2, "acct:9", "token", "tk_alpha", 8],
[2, "acct:9", "tier", "pro", 0],
[5, "acct:9", "token"],
[6],
[7, "acct:9", "token", "tk_beta", 0],
[8, "acct:9", "tier"],
[8, "acct:9", "token"],
[9, 1],
[9, "acct:9", "token"],
[10, "acct:9", "token"],
[10, "acct:9", "tier"]
]
Output:
[None, None, "tk_alpha", 1, None, True, "tk_beta", True, "tk_alpha", None, "pro"]
Explanation: At t = 2, "token" gets deadline 2 + 8 = 10 while "tier" is permanent (ttl = 0). Checkpoint 1 is saved at t = 6. Later writes overwrite "token" with "tk_beta" and delete "tier". Restoring checkpoint 1 at t = 9 brings back "token" ("tk_alpha", still readable at t = 9 since 9 < 10, then None at t = 10) alongside permanent "tier" ("pro").
Example 2
Input:
operations = ["set", "delete", "backup", "restore", "get"]
arguments = [
[3, "cfg:1", "host", "db01", 4],
[7, "cfg:1", "host"],
[8],
[9, 2],
[9, "cfg:1", "host"]
]
Output:
[None, False, 1, False, None]
Explanation: "host" is written at t = 3 with ttl = 4, so its deadline is 7. By t = 7 it has already expired, making delete return False. Checkpoint 1 is taken at t = 8; asking to restore nonexistent backup_id = 2 at t = 9 returns False.
Constraints
1 <= timestamp <= 10^9, and timestamps acrossargumentsare non-decreasing.key,field, andvalueare strings of1to64ASCII letters, digits, and colons (:).0 <= ttl <= 10^6.1 <= len(operations) == len(arguments) <= 20,000.- Combined
"backup"and"restore"invocations do not exceed100.
Step-by-step walkthrough
Understand the two-level database and rules
Our database stores strings inside a two-level hierarchy: an outer
key(such as"acct:9") maps to a group of namedfields (such as"token"or"tier"), and each field holds a stringvalue. Every method call receives the currenttimestamp, and timestamps are guaranteed to be non-decreasing across calls.key ("acct:9") ├── field "token" -> value "tk_alpha" (expires at timestamp 10) └── field "tier" -> value "pro" (never expires)Let us pin down the exact rules for all five methods:
set(timestamp, key, field, value, ttl=0): storesvalueat(key, field). Whenttl > 0, the field expires attimestamp + ttl; whenttl == 0, it never expires. Writing to an existing field overwrites both its value and its expiration.get(timestamp, key, field): returnsvalueif the field exists and is still alive, orNoneif it is missing or expired (timestamp >= expire_at).delete(timestamp, key, field): removes the field and returnsTrueonly if it existed and was still alive attimestamp(Falseotherwise).backup(timestamp): saves a snapshot of all currently alive fields and returns a sequentialbackup_id(1, 2, 3, ...).restore(timestamp, backup_id): replaces the live database with snapshotbackup_id(returningFalseif the ID is invalid). Restored fields keep their original absolute expiration timestamps.
The judge calls
run_in_memory_db(operations, arguments)and expects one output per operation (Noneforset, and the method's return value for everything else).Store absolute expiration times instead of remaining durations
A beginner trap is storing the raw
ttlduration (like10). If you only store10, thengetdoes not know when the10seconds started unless you also store the write timestamp, andrestorebecomes confusing.Instead, convert
ttlinto an absolute deadlineexpire_at = timestamp + ttlthe momentsetis called (orNonewhenttl == 0):set(timestamp=2, ..., ttl=8) --> expire_at = 2 + 8 = 10 timestamp: 2 .... 5 .... 9 | 10 .... 12 status: alive alive alive | expired (timestamp >= 10)Storing
expire_atbuys us two big wins at once: 1. Checking whether a field is alive is a single comparison:expire_at is None or timestamp < expire_at. 2. When a backup is restored later, each field keeps its original wall-clock deadline—which meansexpire_atneeds zero adjustment on restore!class InMemoryDB: def __init__(self) -> None: # Outer dict maps key -> inner dict of {field: (value, expire_at)}. # Mini-shape: {"acct:9": {"token": ("tk_alpha", 10), "tier": ("pro", None)}} # expire_at is an absolute timestamp (timestamp + ttl), or None when ttl == 0. self.data = {} # self.backups[i] holds the snapshot dictionary for backup_id == i + 1 (1-indexed). self.backups = [] def _is_alive(self, expire_at, timestamp) -> bool: # A field expires at timestamp >= expire_at, so it is alive strictly before expire_at. return expire_at is None or timestamp < expire_atImplement set, get, and delete
With
self.dataand_is_alivein place, the three single-field operations are direct hash-map lookups:setcomputesexpire_at(timestamp + ttlifttl > 0, elseNone) and assigns(value, expire_at)toself.data[key][field]. Assigning a new tuple automatically overwrites any previous value and clears or updates any old TTL.getlooks up(key, field)and returnsNoneif the key is missing, the field is missing, or_is_aliveisFalse.deleteremoves the field if present inself.data[key]. What if the field is still sitting inself.data[key]past its expiration time? Because timestamps never move backward, an expired field can never become readable again, so popping it is completely safe—we just returnself._is_alive(expire_at, timestamp)(Falsewhen expired,Truewhen alive). Ifself.data[key]becomes empty, we also deletekeyso empty dictionaries do not accumulate.
def set(self, timestamp: int, key: str, field: str, value: str, ttl: int = 0) -> None: # Convert a positive TTL into an absolute deadline; ttl == 0 means no expiration. expire_at = timestamp + ttl if ttl > 0 else None if key not in self.data: self.data[key] = {} # Overwriting replaces both the stored string and any previous expiration deadline. self.data[key][field] = (value, expire_at) def get(self, timestamp: int, key: str, field: str): fields = self.data.get(key) if fields is None or field not in fields: return None value, expire_at = fields[field] if not self._is_alive(expire_at, timestamp): return None return value def delete(self, timestamp: int, key: str, field: str) -> bool: fields = self.data.get(key) if fields is None or field not in fields: return False # Pop even if expired: timestamps never decrease, so an expired field can never come back to life. _value, expire_at = fields.pop(field) if not fields: del self.data[key] return self._is_alive(expire_at, timestamp)Why snapshots need two-level copies on both backup and restore
Suppose we wrote
self.backups.append(dict(self.data))forbackup. That is a shallow copy: it creates a new outer dictionary, but both outer dictionaries still point to the same inner{field: (value, expire_at)}dictionary!Shallow copy bug (WRONG): self.data["acct:9"] ──────┐ ├──> {"token": ("tk_beta", None)} <-- set() overwrote snapshot 1! backups[0]["acct:9"] ─────┘ Two-level copy (RIGHT): self.data["acct:9"] ──> {"token": ("tk_beta", None)} backups[0]["acct:9"] ──> {"token": ("tk_alpha", 10), "tier": ("pro", None)}The exact same bug happens in reverse if
restoresetsself.data = self.backups[backup_id - 1]without copying: the nextsetwould mutateself.backups[backup_id - 1], breaking any futurerestoreto that samebackup_id.So we write one helper
_copy_alive(source, timestamp)and call it in bothbackupandrestore: - It allocates fresh outer and inner dictionaries, keeping only fields that are alive attimestamp. - Each(value, expire_at)pair is an immutable Python tuple of a string and an int/None, so sharing the tuple itself is completely safe.def _copy_alive(self, source, timestamp): """Build a fresh two-level copy of `source` keeping only fields alive at `timestamp`.""" snapshot = {} for key, fields in source.items(): alive_fields = {} for field, (value, expire_at) in fields.items(): if self._is_alive(expire_at, timestamp): # (value, expire_at) is an immutable tuple of str and int/None, so sharing it is safe. alive_fields[field] = (value, expire_at) if alive_fields: snapshot[key] = alive_fields return snapshotImplement backup and restore
We store snapshots in the list
self.backups, sobackup_id1lives at index0,backup_id2lives at index1, and in generalbackup_idblives atself.backups[b - 1].Watch out for Python's negative list indexing! If
backup_idis0or-1and you only checkbackup_id <= len(self.backups), thenself.backups[backup_id - 1]silently reads from the back of the list instead of failing. Always checkbackup_id < 1 or backup_id > len(self.backups)first.def backup(self, timestamp: int) -> int: # Copy only currently active records so snapshots neither bloat nor share mutable dicts with self.data. self.backups.append(self._copy_alive(self.data, timestamp)) return len(self.backups) def restore(self, timestamp: int, backup_id: int) -> bool: # Guard backup_id < 1 explicitly so negative IDs do not index from the end of self.backups. if backup_id < 1 or backup_id > len(self.backups): return False # Copy again on restore so future writes mutate self.data without corrupting the stored snapshot. saved_snapshot = self.backups[backup_id - 1] self.data = self._copy_alive(saved_snapshot, timestamp) return TrueHow fast is this? There are at most
20,000total operations (so at most20,000fields) and at most100backup/restorecalls, meaning_copy_alivecopies at most100 * 20,000 = 2,000,000field entries across the entire test run—well within a fraction of a second.Wire up the operation dispatcher
Finally,
run_in_memory_dbinstantiatesInMemoryDBand replays each(op, args)pair. Notice thatsethas an optionalttl: int = 0parameter, soargsfor"set"may have either 4 elements or 5 elements.def run_in_memory_db(operations: List[str], arguments: List[List]) -> List: db = InMemoryDB() results = [] # Replay each operation in timestamp order and collect its return value (None for set). for op, args in zip(operations, arguments): if op == "set": timestamp, key, field, value = args[0], args[1], args[2], args[3] ttl = args[4] if len(args) > 4 else 0 db.set(timestamp, key, field, value, ttl) results.append(None) elif op == "get": timestamp, key, field = args[0], args[1], args[2] results.append(db.get(timestamp, key, field)) elif op == "delete": timestamp, key, field = args[0], args[1], args[2] results.append(db.delete(timestamp, key, field)) elif op == "backup": timestamp = args[0] results.append(db.backup(timestamp)) elif op == "restore": timestamp, backup_id = args[0], args[1] results.append(db.restore(timestamp, backup_id)) else: raise ValueError(f"Unknown operation: {op}") return resultsTrace through Example 1 step by step
Let us trace Example 1 to see
self.data,self.backups, and absolute expiration working together:Call Live self.data["acct:9"] backups[0]["acct:9"] Out ---------------------------------------- -------------------------------------------- --------------------------------- ---------- set(2, "acct:9", "token", "tk_alpha", 8) {"token": ("tk_alpha", 10)} - None set(2, "acct:9", "tier", "pro", 0) {"token": ("tk_alpha", 10), "tier": (..,None)} - None get(5, "acct:9", "token") 5 < 10 -> alive - "tk_alpha" backup(6) unchanged {"token": (..,10), "tier": ..} 1 set(7, "acct:9", "token", "tk_beta", 0) {"token": ("tk_beta", None), "tier": ..} unchanged None delete(8, "acct:9", "tier") {"token": ("tk_beta", None)} unchanged True get(8, "acct:9", "token") expire_at is None -> alive unchanged "tk_beta" restore(9, 1) {"token": ("tk_alpha", 10), "tier": ..} unchanged True get(9, "acct:9", "token") 9 < 10 -> alive unchanged "tk_alpha" get(10, "acct:9", "token") 10 >= 10 -> expired! unchanged None get(10, "acct:9", "tier") expire_at is None -> alive unchanged "pro"Look at the final three lines: restoring snapshot
1att = 9brought"tk_alpha"back with its originalexpire_at = 10(plus deleted"tier"), so"token"was still readable att = 9, expired on schedule att = 10, and"tier"remained"pro".Complete solution
from typing import Any, Dict, List, Optional, Set, Tuple class InMemoryDB: def __init__(self) -> None: # Outer dict maps key -> inner dict of {field: (value, expire_at)}. # Mini-shape: {"acct:9": {"token": ("tk_alpha", 10), "tier": ("pro", None)}} # expire_at is an absolute timestamp (timestamp + ttl), or None when ttl == 0. self.data: Dict[str, Dict[str, Tuple[str, Optional[int]]]] = {} # self.backups[i] holds the snapshot dictionary for backup_id == i + 1 (1-indexed). self.backups: List[Dict[str, Dict[str, Tuple[str, Optional[int]]]]] = [] def _is_alive(self, expire_at: Optional[int], timestamp: int) -> bool: # A field expires at timestamp >= expire_at, so it is alive strictly before expire_at. return expire_at is None or timestamp < expire_at def _copy_alive( self, source: Dict[str, Dict[str, Tuple[str, Optional[int]]]], timestamp: int, ) -> Dict[str, Dict[str, Tuple[str, Optional[int]]]]: """Build a fresh two-level copy of `source` keeping only fields alive at `timestamp`.""" snapshot: Dict[str, Dict[str, Tuple[str, Optional[int]]]] = {} for key, fields in source.items(): alive_fields: Dict[str, Tuple[str, Optional[int]]] = {} for field, (value, expire_at) in fields.items(): if self._is_alive(expire_at, timestamp): # (value, expire_at) is an immutable tuple of str and int/None, so sharing it is safe. alive_fields[field] = (value, expire_at) if alive_fields: snapshot[key] = alive_fields return snapshot def set(self, timestamp: int, key: str, field: str, value: str, ttl: int = 0) -> None: # Convert a positive TTL into an absolute deadline; ttl == 0 means no expiration. expire_at: Optional[int] = timestamp + ttl if ttl > 0 else None if key not in self.data: self.data[key] = {} # Overwriting replaces both the stored string and any previous expiration deadline. self.data[key][field] = (value, expire_at) def get(self, timestamp: int, key: str, field: str) -> Optional[str]: fields = self.data.get(key) if fields is None or field not in fields: return None value, expire_at = fields[field] if not self._is_alive(expire_at, timestamp): return None return value def delete(self, timestamp: int, key: str, field: str) -> bool: fields = self.data.get(key) if fields is None or field not in fields: return False # Pop even if expired: timestamps never decrease, so an expired field can never come back to life. _value, expire_at = fields.pop(field) if not fields: del self.data[key] return self._is_alive(expire_at, timestamp) def backup(self, timestamp: int) -> int: # Copy only currently active records so snapshots neither bloat nor share mutable dicts with self.data. self.backups.append(self._copy_alive(self.data, timestamp)) return len(self.backups) def restore(self, timestamp: int, backup_id: int) -> bool: # Guard backup_id < 1 explicitly so negative IDs do not index from the end of self.backups. if backup_id < 1 or backup_id > len(self.backups): return False # Copy again on restore so future writes mutate self.data without corrupting the stored snapshot. saved_snapshot = self.backups[backup_id - 1] self.data = self._copy_alive(saved_snapshot, timestamp) return True def run_in_memory_db(operations: List[str], arguments: List[List]) -> List: db = InMemoryDB() results: List[Any] = [] # Replay each operation in timestamp order and collect its return value (None for set). for op, args in zip(operations, arguments): if op == "set": timestamp, key, field, value = args[0], args[1], args[2], args[3] ttl = args[4] if len(args) > 4 else 0 db.set(timestamp, key, field, value, ttl) results.append(None) elif op == "get": timestamp, key, field = args[0], args[1], args[2] results.append(db.get(timestamp, key, field)) elif op == "delete": timestamp, key, field = args[0], args[1], args[2] results.append(db.delete(timestamp, key, field)) elif op == "backup": timestamp = args[0] results.append(db.backup(timestamp)) elif op == "restore": timestamp, backup_id = args[0], args[1] results.append(db.restore(timestamp, backup_id)) else: raise ValueError(f"Unknown operation: {op}") return results✅ Submit now — all tests should pass.
Intuition & how it works
Think of this database as a filing cabinet of named folders (key), where each folder holds labeled sticky notes (field -> value). Some sticky notes have a time-to-live (TTL)—a lifespan after which the record automatically expires—so the moment we write a note at timestamp with a positive ttl, we stamp the exact "use before" deadline expire_at = timestamp + ttl right onto the note (or None if ttl == 0). Instead of running a background timer to throw away expired notes every second, we use lazy expiration, meaning we simply check whether timestamp < expire_at whenever someone reads, deletes, backs up, or restores a note.
Two naive shortcuts fail right away. First, if you store the duration ttl instead of the absolute deadline timestamp + ttl, you cannot tell whether a field has expired without also tracking when it was written, and restore easily miscalculates when restored records should die. Second, if backup saves self.data directly or uses a shallow copy (copying only the outer dictionary while sharing the inner {field: ...} dictionaries), any future set or delete silently mutates your saved backup—and the same corruption happens in reverse if restore points self.data directly at the stored snapshot without copying it again.
Walk through Example 1 on "acct:9" to see how absolute deadlines and two-level copies work together:
1. set(2, "acct:9", "token", "tk_alpha", ttl=8) stores ("tk_alpha", 10) inside self.data["acct:9"]["token"] (while "tier" stores ("pro", None)).
2. backup(6) copies all currently alive fields into backups[0] (backup_id = 1), preserving ("tk_alpha", 10) and ("pro", None).
3. set(7, "acct:9", "token", "tk_beta", ttl=0) and delete(8, "acct:9", "tier") mutate the live store, while backups[0] remains untouched.
4. restore(9, 1) copies alive entries from backups[0] back into self.data; since 9 < 10, get(9, "acct:9", "token") returns "tk_alpha".
5. At timestamp = 10, get(10, "acct:9", "token") sees 10 >= 10 and returns None, while permanent "tier" still returns "pro".
Complexity
Let F be the number of stored (key, field) entries in the database (at most 20,000) and B be the number of backups created (at most 100).
- Time:
set,get, anddeleteeach takeO(1)average time because they perform at most two hash-map lookups and a constant-time timestamp comparison.backupandrestoreeach takeO(F)time because_copy_alivevisits every stored field in the source dictionary to copy the ones that are still alive; across at most100backup/restore calls on at most20,000fields, that is at most2,000,000simple dictionary insertions total. - Space:
O(F)for the liveself.datadictionary plus the sum of alive field counts across all snapshots, which is at mostO(B * F). Each snapshot allocates its own outer and inner dictionaries, while safely sharing the immutable(value, expire_at)tuples.
Edge cases
- Exact expiration boundary (
timestamp == expire_at): Afterset(2, "acct:9", "token", "tk_alpha", ttl=8),expire_atis10, so the field is still readable at9(9 < 10) and expired at10(10 >= 10). - Permanent fields (
ttl == 0or omittedttl):expire_atisNone, so the field never expires even attimestamp = 10^9. - Overwriting an existing field: Calling
setwithttl=0clears an existing expiration deadline; callingsetwithttl > 0sets a brand-new deadlinetimestamp + ttl. deleteon an expired field: Must returnFalsebecause the field was already dead attimestamp, and subsequentgetcalls must continue returningNone.deleteon one field among many: Removes only that field underkey, leaving sibling fields untouched.- Invalid
backup_id(<= 0or> len(backups)): Must returnFalsewithout modifying live state; checkingbackup_id < 1prevents0or-1from indexing from the back of Python'sself.backupslist. - Restoring the same
backup_idmultiple times: Mutations made after the firstrestoremust not leak into the saved snapshot, so a secondrestoreof the same ID restores the exact original state again. - Restoring after a captured field has expired: A field that was alive at
backup(2)withexpire_at = 11is skipped whenrestore(20, 1)runs attimestamp = 20.
Common mistakes
- Off-by-one check (
timestamp <= expire_atinstead oftimestamp < expire_at): Keeps expired fields alive for one extra tick, causingget(10, "acct:9", "token")in Example 1 to return"tk_alpha"instead ofNone. - Shallow-copying
self.datainbackup: Writingdict(self.data)orself.data.copy()shares the inner field dictionaries between live state and the snapshot, so laterset/deletecalls corrupt the backup. - Assigning by reference in
restore: Writingself.data = self.backups[backup_id - 1]without copying means subsequent writes mutate the stored snapshot in place. - Forgetting
backup_id < 1: In Python,self.backups[0 - 1]evaluatesself.backups[-1]and silently restores the latest backup instead of returningFalse. - Rebasing TTL on
restore: Recomputingtimestamp + remaining_ttlduringrestoreimplements relative TTL rather than keeping original absolute expiration times.
Follow-up questions
- If the store holds millions of keys and snapshots are taken every few seconds, how can you avoid cloning the entire dataset on each backup? Instead of copying every key on every backup, use copy-on-write (CoW)—a technique where two versions share the same memory until one of them modifies it. On
backup, copy only the outerkey -> fieldsdictionary references (or increment a reference count) and mark the innerfieldsdictionaries as shared; whensetordeletelater touches a sharedkey, clone only that singlekey's inner dictionary before mutating it. For even larger scale, a persistent hash array mapped trie (HAMT)—a tree-shaped immutable map that shares unchanged subtrees across versions—makesbackupO(1)andset/getO(log N)with minimal memory overhead. - Suppose restoring a snapshot should pause and resume each field's remaining lifespan instead of keeping its fixed wall-clock deadline; what would change? During
backup(backup_ts), instead of savingexpire_atdirectly, store the remaining lifespanremaining = expire_at - backup_ts(orNonewhenexpire_at is None). Becausebackuponly captures alive fields (backup_ts < expire_at),remainingis guaranteed to be at least1. Then duringrestore(restore_ts, backup_id), reconstruct each field's new deadline asrestore_ts + remaining(orNone), giving the field the exact remaining time it had when the snapshot was taken. - How would you proactively purge expired entries to free RAM when dead keys are never queried again? Maintain a min-heap—a binary tree stored in a list that always keeps the smallest element at index
0—containing(expire_at, key, field)tuples pushed on everysetwithttl > 0. At the beginning of each operation (or on a periodic tick), pop all heap entries withexpire_at <= timestampand delete(key, field)fromself.dataonly if its currently storedexpire_atstill matches the popped timestamp (ignoring stale heap entries left behind by earlier overwrites or deletes, a trick called lazy heap deletion). Eachsetpushes at most one tuple and each tuple is popped at most once inO(log F)time, whilerestoresimply rebuilds the heap from the restored alive fields.
Follow-up questions
- If the store holds millions of keys and snapshots are taken every few seconds, how can you avoid cloning the entire dataset on each backup?
- Suppose restoring a snapshot should pause and resume each field's remaining lifespan instead of keeping its fixed wall-clock deadline; what would change?
- How would you proactively purge expired entries to free RAM when dead keys are never queried again?
Similar questions
- Time-Limited Credit Ledger
- Bit-Level Inner-Loop Optimizations
- Stateful Banking Ledger Simulation
- Depth-Bounded Multi-Threaded Web Crawler
- Constant-Time LRU Cache
- Timestamped Banking Ledger with Merges and History
More Anthropic interview questions
- Inferring Call-Trace Events from Sampled Stacks Hard
- Direct Two-Person Web Messaging Hard
- Anthropic Recruiter Screen: Lab Motivation, Safety Taxonomy, and Misuse Risks Medium Pro
- Time-Versioned Key-Field Store Hard Pro
- Collaborative Prompt Studio and Model Execution Service Medium Pro
- Anthropic Values Alignment, Integrity Under Friction, and Policy Critique Medium Pro
- Single-GPU and All-GPU Batch Scheduling for Model Inference Hard Pro
- Fleet-Wide Model Artifact Rollout System Hard Pro
- Same-Host Sequential and Concurrent Web Crawler Medium Pro
- Motivation for Anthropic and Perspective on AI Safety Hard Pro