Async Code & Retries
Start from a crawler that fetches pages on a thread pool, claims each URL once under a lock and finishes cleanly. That version is worked in Concurrency & Systems. In most rounds the hour doesn't end there. The interviewer keeps the same code on screen and changes one assumption at a time, and each change hits a different part of what you wrote.
Three of those changes get their own problem here. First the whole crawl moves onto one asyncio event loop. Then the frontier, the queue of URLs waiting to be fetched, has to know when the crawl is really over. The last one assumes the network fails, so every fetch needs retries, a timeout and a backoff schedule that won't hammer a host that's already struggling.
AnthropicPremium lesson · Coding round
The 3 Anthropic problems are below.
- A Premium questionCoding · Medium · Frequently asked
- A Premium questionCoding · Medium
- A Premium questionCoding · Medium
Each with hints, the follow-up and a tested solution.
Get the Anthropic questions$49 a year · all 100 companies · cancel anytime
From 20,000+ candidate reports, forum threads behind logins and write-ups in Chinese.
Anthropic interview guideKnow what Anthropic asks before you walk in.
33 coding · 5 system design · 14 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.