Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Simulate how the robot moves and keep track of how many spaces it has cleaned so far.
When can we stop the simulation?
When the robot reaches a space that it has already cleaned and is facing the same direction as before, we can stop the simulation.