Blind maze escape: one command sequence for every start

0
Remix

A robot is somewhere in a grid maze of walls (#), open cells (.) and an exit (E), but you do not know which open cell it starts on. It obeys the commands U, D, L and R, each moving it at most one cell. Find the shortest sequence of commands that brings the robot to the exit whatever cell it started from.

GoogleCodingLast asked Apr 2026
No answer yet. Write the first one; the best answer gets endorsed.