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.
We'll cover the following...
We'll cover the following...
Statement
You are given a 0-indexed 2D binary matrix, room, representing a room of size