Number of Spaces Cleaning Robot Cleaned
Understand how a cleaning robot moves through a 2D binary matrix representing a room, cleaning unique spaces by moving straight and turning upon obstacles or boundaries. Learn to track and count the cleaned spaces efficiently by simulating the robot's movement and detecting repeated states.
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