Search⌘ K
AI Features

Number of Spaces Cleaning Robot Cleaned

Explore how a cleaning robot moves in a binary matrix representing a room and cleans spaces by navigating around obstacles. Understand the rules governing the robot's movement and learn to determine the total unique spaces cleaned before it revisits a space facing the same direction.

Statement

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