← Questions

Grid reachability for a robot that cannot reverse

0
AmazonCodingLast asked Sep 2026

A robot moves on a grid of open cells, blocked cells, a start S and a destination D. It always faces one of four directions, can never turn around, and may only turn in the ways the rules allow. Decide whether it can reach D.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding