Search⌘ K
AI Features

Number of Spaces Cleaning Robot Cleaned

Explore how to calculate the total unique spaces cleaned by a robot moving inside a 2D binary matrix representing a room. This lesson helps you understand the robot's movement rules and turning behavior when encountering obstacles, enabling you to solve related matrix traversal problems effectively.

Statement

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