Number of Spaces Cleaning Robot Cleaned
Explore how to solve the problem of a cleaning robot moving in a 2D binary matrix, cleaning spaces based on specific movement and turning rules. Learn to simulate the robot’s path, detect repeated visits in the same direction, and count unique cleaned spaces. Understand matrix traversal techniques to apply in similar coding interview challenges.
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