← Questions

Shortest path on a grid with a custom move set

0
OpenAICodingLast asked Oct 2026

A coding interview question asked in OpenAI's agentic coding (beta) round, last asked Oct 2026. It tests bfs, grids and graphs.

An atom sits on a grid of allowed (.) and forbidden (#) cells and must reach a target cell. Instead of the usual four moves you get a list of actions, each a row and column offset.

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 Oct 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

bfs · grids · graphs

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