Anthropic Interview Questions
Practice the exact questions companies are asking right now.
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-...
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...
Explain career goals and cultural alignment
Behavioral: Long‑Term Goals and Mission Alignment (Software Engineer, Onsite) Prompt You are interviewing onsite for a Software Engineer role. Address...
Design an LLM-based binary classifier
Design a Binary Text Classifier Using Only a Log-Probability Scoring Helper Context You are building a binary text classifier without fine-tuning. You...
Solve programming task with follow-ups
Question Pure programming problem solving: implement the core algorithmic solution, then extend it to ( 1) support a constraint of consecutive N eleme...
Optimize HTTP requests for speed and limits
You are building a service that needs to send HTTP requests to a large number of URLs (for example, a simple web crawler or data fetcher). The naive i...
Optimize a core kernel for throughput
You are given a mocked “core kernel” function (similar in spirit to a GPU kernel / tight compute loop) that is functionally correct but slow. Task - O...
Estimate VRAM and compare model parallelism
You are reasoning about GPU memory and parallelism for a transformer-like workload dominated by matrix multiplications. Part 1: Can one matmul’s tenso...
Explain projects and handle AI-safety conflicts
Behavioral / Hiring Manager round 1. Walk through 1–2 key projects from your resume. - What was the goal and why did it matter? - What was your ...
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....
How would you scale batch image pipelines?
Design a system to process m input images with n pipelines, producing m×n outputs. - Pipelines are sequences of image operations (resize/rotate/filter...
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...
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...
Design a desktop AI chat frontend
Design a Frontend Architecture for a Cross-Platform Desktop Conversational AI App Context You are designing the frontend architecture for a cross-plat...
Implement a recency-eviction bounded cache
Implement an in-memory key–value store with a fixed capacity N that uses recency-based eviction. Support: get(key) -> value or -1 if missing, and put(...
Simulate stack traces from logs
Given a list of log entries describing function calls, each formatted as "<id> <event> <timestamp>" where event ∈ {START, END} and timestamps are inte...
Discuss career decisions and culture fit
Behavioral and Leadership Technical Screen — Software Engineer Context You’ll be assessed on how you make and communicate decisions, collaborate acros...
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...
Walk through a recent technical project
Project Deep-Dive (Onsite Behavioral + Technical) Context: Choose a recent technical project (ideally within the last 12–18 months) where you led or h...
Design a scalable network I/O service
System Design: High-Volume Network I/O Backend (Files and Streaming) Context Design a backend service that supports millions of users uploading and do...