Anthropic online assessment question, reconstructed from 3 candidate reports (February 2025 to July 2026). Tests: file systems and path trees; stateful class design. The write-up includes a Python solution that passes 8 test cases.
The full problem statement — full requirements, constraints, and edge cases
Approach and trade-offs — what passing candidates did, and the mistakes that sink people
Unlock the full Anthropic catalog
Full problem statements, candidate-reported follow-ups, and walkthroughs — for every Anthropic question.