← Questions

Shortest path through a required cell when revisits are free

0
Google DeepMindCodingLast asked Mar 2026

A coding interview question asked in Google DeepMind's coding round, last asked Mar 2026. It tests graphs, bfs and grids.

An N x M grid has walls (#) and open cells, among them one start (S), one end (E) and one checkpoint (K). You move up, down, left or right between open cells and may visit a cell any number of times.

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

  • Google DeepMind · Coding · Last asked Mar 202660 min · Live coding, usually two rounds; research engineers get ML coding (a loss, attention, a sampling routine or a small training loop) · Not allowed or heavily restricted

What it tests

graphs · bfs · grids · shortest path

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