Moon Rover / Robot Movement Simulation (with obstacles and multiple rovers)
Problem: Moon Rover Movement Simulation (with obstacles and multiple rovers)
On a 2D integer grid, a rover has a position (x, y) and a direction dir in {N, E, S, W}. Starting from an initial...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
