Solve programming task with follow-ups
AnthropicSoftware Engineer · Technical ScreenLast updated
This question evaluates algorithmic problem-solving skills, including core algorithm implementation, handling a consecutive-N-element constraint, and designing an optimization that leverages suffix-related information.
Question
Pure programming problem solving: implement the core algorithmic solution, then extend it to (
- support a constraint of consecutive N elements and (
- an optimization that uses only suffix-related information.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.