Search⌘ K
AI Features

Number of Spaces Cleaning Robot Cleaned

Understand how to simulate a cleaning robot navigating a room represented by a binary matrix. Explore how it moves, turns upon obstacles, and count all unique spaces it cleans before revisiting any space with the same direction. This lesson helps you implement and reason through grid-based movement and state tracking algorithms.

Statement

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