Rover Navigation on a 2D Grid (with follow-ups: multiple rovers, 3D, code review/improvements)
Problem: Simulate a Rover on a 2D Grid (with follow-ups)
You need to implement a rover movement simulator.
Base (Single Rover, 2D map)
Given:
- A 2D grid with size
W H(coordinates range fr...
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:
