Number of Spaces Cleaning Robot Cleaned
Explore how to simulate a cleaning robot's path through a binary matrix representing a room. Understand the robot's movement rules, including turning upon reaching edges or obstacles, and learn to calculate the number of unique spaces cleaned before the robot revisits a space facing the same direction.
We'll cover the following...
We'll cover the following...
Statement
You are given a 0-indexed 2D binary matrix, room, representing a room of size