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 Locked

Build a least-recently-used cache

This question evaluates a candidate's competence in designing and implementing efficient in-memory cache mechanisms, focusing on data structures, evic...

Coding & Algorithms
4
0
35 people solved
Feb 8, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Crawl Same-Domain Links

Implement a Python function that crawls a website starting from a seed URL and returns all unique pages reachable within the same domain. Assume a hel...

Coding & Algorithms
16
0
114 people solved
Jan 6, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Design file deduplication across nested directories

Design and implement a file deduplication tool that, given a root directory, identifies groups of duplicate files. Requirements: traverse nested direc...

Coding & Algorithms
21
0
204 people solved
Aug 14, 2025
Anthropic logo
Anthropic
Hard
Software Engineer

Implement staircase printing and distributed mode/median

Problem A: Print a “staircase” pattern Implement a function that prints a staircase with n rows. Input - An integer n (n >= 1) Output - Print n lines....

Coding & Algorithms
67
0
923 people solved
Nov 19, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Design file deduplication algorithm

Design an algorithm to deduplicate files in a storage system. Compare fixed-size versus content-defined chunking and explain how you would choose hash...

Coding & Algorithms
12
0
201 people solved
Sep 6, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Apply bitwise tricks for performance

For an integer-heavy inner loop, propose bit-level optimizations that reduce branches and memory traffic: e.g., population count usage, fast modulo by...

Coding & Algorithms
22
0
162 people solved
Sep 6, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Implement file deduplication at scale

Write a program to deduplicate files in a very large directory tree. Identify groups of identical files without loading entire files into memory. Outl...

Coding & Algorithms
99
0
759 people solved
Sep 6, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Design and implement a Python solution

Design and implement a solution in Python for a problem specified by the interviewer. Outline your approach and chosen data structures, justify key de...

Coding & Algorithms
26
0
243 people solved
Sep 6, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Implement Python LRU cache with args and persistence

Implement an LRU cache in Python as a decorator or class that correctly supports variable-length positional arguments and keyword arguments. Ensure th...

Coding & Algorithms
46
0
314 people solved
Aug 1, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Implement a same-host web crawler

Implement a web crawler. Given a start URL and a function get_links(url) -> list of URLs, return all URLs that share the same hostname as the start. A...

Coding & Algorithms
14
0
102 people solved
Aug 1, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Implement thread-safe blocking queue

Question Design and implement a thread-safe bounded blocking queue that supports concurrent enqueue and dequeue operations using standard synchronizat...

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

Same-Domain Web Crawl (BFS)

This question evaluates a candidate's ability to implement graph traversal using breadth-first search while applying a domain-matching filter and dedu...

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

Implement a Least-Recently-Used Cache

Design and implement an in-memory least-recently-used cache. Requirements: - The cache is initialized with a positive integer capacity. - Implement ge...

Coding & Algorithms
1
0
7 people solved
Apr 19, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Compute Exclusive Time from Stack Events

Compute Exclusive Time from Stack Events Given entry and exit events from one thread, compute the total exclusive running time of each function. The i...

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

Implement a Parallel Image Processor

This question evaluates understanding of parallel and process-based concurrency, batch image-processing pipelines, transform correctness, and per-job ...

Coding & Algorithms
31
0
330 people solved
Apr 3, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Implement Parallel Image Processing

Build an image-processing utility in Python using the Pillow library. You are given a collection of image file paths and an output directory. For each...

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

Implement crawler and file deduplication

This question evaluates competencies in concurrent programming, web crawling and graph traversal, thread safety, rate limiting, I/O-efficient file ded...

Coding & Algorithms
11
0
97 people solved
Feb 28, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Find Duplicate Files by Content

You are given a list of directory descriptions. Each description has the following format: root_directory file_name_1(content_1) file_name_2(content_2...

Coding & Algorithms
0
0
3 people solved
Feb 21, 2026
Anthropic logo
Anthropic
Hard
Software Engineer Locked

Design stack with O(1) minimum query

This question evaluates understanding of stack-based data structures, constant-time operation constraints, and handling edge cases such as empty queri...

Coding & Algorithms
57
0
432 people solved
Feb 1, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Compute exclusive times and call stack from logs

Design an algorithm that, given a single-threaded program's execution log, computes per-function exclusive durations and reconstructs the active call ...

Coding & Algorithms
14
0
174 people solved
Sep 6, 2025

Explore more Anthropic Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Anthropic Software Engineer categories
Browse all