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

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
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...
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 ...
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...
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...
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...
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...
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...
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...
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 ...
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...
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...
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...
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 ...
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 ...
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...
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...
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...
Implement Persistent Memoization LRU Cache
This question evaluates knowledge of memoization, LRU cache semantics, deterministic cache-key construction from positional and keyword arguments, JSO...
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...
Implement a hierarchical file store
This question evaluates proficiency in modeling hierarchical file systems, path parsing and manipulation, managing mutable file contents, and analyzin...