Search⌘ K
AI Features

Number of Spaces Cleaning Robot Cleaned

Explore how a cleaning robot traverses a 2D matrix representing a room with obstacles. Learn to determine the count of unique spaces cleaned by simulating the robot's movement, turns, and cleaning logic based on matrix boundaries and objects.

Statement

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