Search⌘ K
AI Features

Number of Spaces Cleaning Robot Cleaned

Explore how to simulate a cleaning robot moving in a 2D binary matrix, cleaning unique spaces while handling boundaries and obstacles. Understand traversal logic, direction rotations, and how to detect revisits, enabling you to solve similar matrix and movement pattern problems effectively.

Statement

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