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
Medium
Software Engineer

Design a single- and multi-threaded web crawler

Web Crawler (single-threaded, then multi-threaded) You are given: - A starting URL startUrl (e.g., "http://news.example.com/a/index.html"). - An inter...

Coding & Algorithms
64
0
527 people solved
Oct 26, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Implement a Banking System

Design and implement an in-memory banking system. All operations are processed in non-decreasing timestamp order. Account identifiers are strings. Mon...

Coding & Algorithms
9
0
67 people solved
May 24, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Find Duplicate Files

Implement a file deduplication tool. You are given a root directory containing many files. Return groups of duplicate files. Two files are duplicates ...

Coding & Algorithms
12
0
80 people solved
Mar 2, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Fix a Corrupted Bootloader Instruction

This question evaluates the ability to simulate instruction-level program execution, reason about control flow and mutable program state (instruction ...

Coding & Algorithms
9
0
51 people solved
May 19, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Convert stack samples to trace events

Question Implement convertToTrace(samples) that, given a chronologically ordered vector of stack samples (each sample contains a timestamp and a call-...

Coding & Algorithms
181
2
676 people solved
Jul 29, 2025
Anthropic logo
Anthropic
Medium
Software Engineer AI Locked

Maximum-Length Unique-Character Subset

This question evaluates a candidate's ability to combine bitmasking with backtracking or subset enumeration to maximize a constraint over combinations...

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

Word Search in a Letter Grid

This question evaluates a candidate's ability to search for multiple target words within a grid of letters using depth-first traversal and backtrackin...

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

Path Resolution with Symbolic Links

This question evaluates a candidate's ability to implement filesystem-style path resolution, including handling relative and absolute paths, dot compo...

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

In-Memory Key-Value Database with Nested Transactions

This question evaluates a candidate's ability to design a data structure that layers transactional state over a committed base, testing skills in nest...

Coding & Algorithms
5
0
22 people solved
Jun 23, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Generate outputs for images and pipelines

You are given m input images and n processing pipelines. - Each pipeline is an ordered list of k operations (e.g., resize, rotate, crop, blur, color t...

Coding & Algorithms
115
0
1247 people solved
Nov 10, 2025
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Implement an in-memory DB with TTL backup/restore

This question evaluates implementation and reasoning skills for an in-memory nested key→field→value store with TTL-based expirations, snapshot backup/...

Coding & Algorithms
79
2
873 people solved
Feb 11, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Parse and Reconstruct Stack Trace

Given a multi-line stack trace string from a single thread (e.g., each frame is in the form 'at Module::Function(file:line)'), design and implement a ...

Coding & Algorithms
44
0
666 people solved
Sep 6, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Detect duplicate files efficiently

You are given access to a very large file system containing file paths and read access to file contents. Design an algorithm to identify groups of fil...

Coding & Algorithms
46
0
816 people solved
Sep 6, 2025
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Design an IPv4 Address Iterator

This question evaluates a candidate's ability to represent and iterate IPv4 addresses, covering parsing, numeric arithmetic with carry between octets,...

Coding & Algorithms
15
0
114 people solved
Jan 10, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Build a concurrent web crawler

This question evaluates understanding of concurrent programming, synchronization, thread safety, and graph traversal as applied to a multithreaded web...

Coding & Algorithms
22
0
144 people solved
Apr 5, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Group Duplicate Files by Content

Group Duplicate Files by Content Given a snapshot of files, return groups of paths whose complete contents are identical. The interview report preserv...

Coding & Algorithms
0
0
6 people solved
Apr 16, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Implement a Batch Image Processor

This question evaluates a candidate's competency in image processing operations and parallel/concurrent programming, covering basic transformations (g...

Coding & Algorithms
11
0
82 people solved
Apr 1, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Implement a longest-match tokenizer

This question evaluates string-processing and algorithmic implementation skills for greedy longest-match tokenization, including handling runs of unma...

Coding & Algorithms
4
1
73 people solved
Oct 19, 2025
Anthropic logo
Anthropic
Hard
Software Engineer

Find duplicate files and apply image operations

Part A — Find duplicate files by content You are given a list of directory records. Each record is a string describing a directory path followed by on...

Coding & Algorithms
115
0
772 people solved
Oct 15, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Detect duplicate files by content

Detect duplicate files by content in a filesystem. Given access to a directory tree, return groups of file paths that have identical byte content. Min...

Coding & Algorithms
12
0
188 people solved
Aug 1, 2025

Explore more Anthropic Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Anthropic Software Engineer categories
Browse all