Problem 2087 · Medium

Minimum Cost Homecoming of a Robot in a Grid

Return a robot home with minimum entered-row and entered-column cost.

Open the interactive visualisation