Number of Spaces Cleaning Robot Cleaned
Understand how to simulate a cleaning robot moving through a binary matrix, turning at obstacles and edges. Learn to track and count unique spaces cleaned by the robot until it revisits the same spot facing the same direction, applying matrix traversal techniques useful in coding interviews.
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