Number of Spaces Cleaning Robot Cleaned
Explore how to model and solve the problem of a cleaning robot moving within a 2D matrix representing a room. Learn to track the robot's movement, handle directional changes upon hitting obstacles or boundaries, and count unique cleaned spaces efficiently through matrix traversal techniques.
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