← Questions

Fix one instruction so the robot reaches the target

0
OpenAICodingLast asked Sep 2026

A coding interview question asked in OpenAI's agentic coding (beta) round, last asked Sep 2026. It tests grids, simulation and strings.

A robot starts on S in a rectangular grid, facing up, and runs a program of commands: F moves one cell forward, B moves one cell backward without turning, and L and R turn in place. You must replace exactly one command with a different…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • OpenAI · Agentic coding (beta) · Last asked Sep 2026An existing codebase and changes too large to write by hand; you work through them with an AI coding agent · An AI coding agent is expected

What it tests

grids · simulation · strings

Your code and the AI tutor open when you unlock this question.