Problem 789 · Medium

Escape The Ghosts

You escape only if you reach the target strictly before every ghost could (Manhattan distances).

Open the interactive visualisation