The scenario
Improve a jump controller in a small flight simulator, from staying inside the world to navigating longer pipe courses. This original nrml adaptation is informed by community reports about a Coinbase OA; its integer physics and complete-course visibility are nrml choices.
A failure to reason about
Two birds at the same height can need different actions when one is rising and the other is falling. A safe next move can still leave no route through an approaching gap.
Illustrative context for the topic. The exercise’s full requirements arrive in the workspace.
Questions to bring to your review
- How do velocity and jump timing change the next position?
- When does a pipe begin and stop constraining the flight?
- How can you distinguish a locally safe action from a course that can be completed?
- Which repeatable tests show that a strategy improvement preserves earlier behavior?
Skills you will practice
- State prediction
- Collision boundaries
- Strategy evaluation
- Memoization
Read the existing code, reproduce the reported behavior, review proposed changes, and verify your final implementation. You can use AI assistance while staying responsible for the result.
Prepare with a worked example
- How to approach an AI-assisted coding interview
A practical walkthrough of an AI-assisted coding interview: understand the repository, direct the assistant, verify a change, and explain your decisions.
See how nrml evaluates an attempt, including the limits of automated evidence.