Anthropic Senior staff coding interview questions
These are the 5 coding questions YourAlly has tagged for Anthropic at Senior staff. On the YourAlly ladder this is Senior staff, the same level as Google L7, Meta E7 and Amazon L8.
A coding round at a large tech company usually runs 45 to 60 minutes with one or two problems. You write code that runs, test it on your own examples and state its time and space cost. At this level coding is often a smaller part of the loop, but the bar for clarity and speed stays high.
Practice a mock Anthropic Senior staff coding loopPractice Anthropic coding questions
Redact Sensitive SpansFree to read
Given text and a list of [start, end) spans to redact, return the text with those spans replaced by '[REDACTED]'. Spans may overlap; merge before replacing.
Input: text = "ssn 123-45-6789 ok", spans = [[4,15]] Output: "ssn [REDACTED] ok"
4 more coding questions
- Apply Ranked Byte Pair Merges Locked
- Parse Nested Policy Expressions Locked
- Sliding Window Maximum Latency Locked
- Token Bucket Rate Limiter Locked
Related pages
More Anthropic Senior staff rounds
- Behavioral 4 questions
Anthropic coding at other levels
Other companies at this level
- Adobe Senior staff 4 questions
- Airbnb Senior staff 4 questions
- Amazon L8 6 questions
- Apple Senior staff 7 questions
- Cisco Senior staff 3 questions
- Google L7 14 questions