Anthropic Software Engineer Coding & Algorithms Interview Questions

Practice 71 real Coding & Algorithms interview questions for Software Engineer roles at Anthropic.

71 Questions 1 Company07.08.2026
Showing 20 results
Role
Anthropic logo
Anthropic
Hard
Software Engineer

Build a Progressive Banking Ledger

Build a Progressive Banking Ledger The source reports the four feature stages but not exact ledger semantics. The APIs, event priorities, cashback tim...

Coding & Algorithms
2
0
43 people solved
Jul 8, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Banking System Simulation

Banking System Simulation You are building an in-memory banking system that is driven by a time-ordered stream of operations. Implement the system so ...

Coding & Algorithms
6
0
57 people solved
Jun 23, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Build a Progressive Employee Tracker

Build a Progressive Employee Tracker The source reports four tracker stages but not exact calls or failure values. The command driver and ordering rul...

Coding & Algorithms
5
0
52 people solved
Jul 8, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Generate Function Profiling Events from Stack Samples

Generate Function Profiling Events from Stack Samples You receive timestamped call-stack samples in increasing timestamp order. Each sample is (timest...

Coding & Algorithms
6
0
66 people solved
Apr 13, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Convert Stack Samples into Trace Events

Convert Stack Samples into Trace Events The source reports converting sampled call stacks into trace events but does not provide the exact tuple forma...

Coding & Algorithms
2
0
36 people solved
Jul 8, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Calculate Streaming Token Usage Costs

Calculate Streaming Token Usage Costs Implement a usage calculator for language-model API requests. Input and output tokens have different prices, and...

Coding & Algorithms
2
0
18 people solved
Jul 8, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Time-Based Key-Value Store

This question evaluates the ability to design a data structure that supports versioned storage and efficient point-in-time lookups. It tests binary se...

Coding & Algorithms
1
0
9 people solved
Jun 23, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Build a Progressive Cloud Storage System

Build a Progressive Cloud Storage System The source reports four storage stages but not the exact API. The command encoding, quota accounting, compres...

Coding & Algorithms
1
0
25 people solved
Jul 8, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Implement a Longest-Match Tokenizer

Implement a Longest-Match Tokenizer The source reports longest matching, unknown-token handling, and an optional unknown-merging extension. The exact ...

Coding & Algorithms
3
0
21 people solved
Jul 8, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Build a Versioned In-Memory Database

Build a Versioned In-Memory Database The source reports a four-stage in-memory database exercise but does not provide its exact method signatures. The...

Coding & Algorithms
2
0
18 people solved
Jul 8, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Implement a crash-resilient LRU cache

Implement an LRU-based memoization helper with behavior similar to a standard Python LRU cache. You are given an interface like this: `python class LR...

Coding & Algorithms
721
4
5127 people solved
Mar 13, 2026
Anthropic logo
Anthropic
Hard
Software Engineer Locked

Implement a Time-Aware Task Manager

This question evaluates the ability to design and implement in-memory data structures and algorithms for time-aware state management, including per-us...

Coding & Algorithms
6
0
34 people solved
May 17, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Implement crawler, dedup, and persistent LRU

Implement crawler, dedup, and persistent LRU LeetCode 1236. Web Crawler: Crawl web pages starting from a given URL within the same hostname. LeetCode ...

Coding & Algorithms
114
0
786 people solved
Aug 4, 2025
Anthropic logo
Anthropic
Hard
Software Engineer

Simulate Threshold Infection Efficiently

Simulate Threshold Infection Efficiently You are given an m x n grid, a set of initially infected cells, and an integer threshold k. Time advances in ...

Coding & Algorithms
2
0
13 people solved
Jul 8, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Implement Task Management and Duplicate Detection

This question evaluates implementation and system-design skills across two problems: an in-memory task management service (CRUD operations, prioritize...

Coding & Algorithms
3
0
17 people solved
May 16, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

LRU Cache

This question evaluates a candidate's ability to design a data structure combining a hash map with a doubly linked list to achieve constant-time acces...

Coding & Algorithms
2
0
13 people solved
Jun 23, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Account Balance with Expiring Grants

This question evaluates the ability to design a data structure that tracks time-limited credit grants, prioritizing expiration order during spending a...

Coding & Algorithms
0
0
13 people solved
Jun 23, 2026
Anthropic logo
Anthropic
Hard
Software Engineer Locked

Implement Persistent Memoization LRU Cache

This question evaluates knowledge of memoization, LRU cache semantics, deterministic cache-key construction from positional and keyword arguments, JSO...

Coding & Algorithms
9
0
69 people solved
May 23, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Design an in-memory banking service

Design an in-memory banking service supporting timestamped operations and edge-case semantics. Implement: ( 1) create_account(id, t): Create a new acc...

Coding & Algorithms
105
1
928 people solved
Sep 6, 2025
Anthropic logo
Anthropic
Hard
Software Engineer Locked

Implement a hierarchical file store

This question evaluates proficiency in modeling hierarchical file systems, path parsing and manipulation, managing mutable file contents, and analyzin...

Coding & Algorithms
4
0
20 people solved
May 12, 2026

Explore more Anthropic Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Anthropic Software Engineer categories
Browse all