Search⌘ K
AI Features

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.

Statement

You are given a 0-indexed 2D binary matrix, room, representing a room of size ...