Number of Spaces Cleaning Robot Cleaned
Explore how to calculate the number of unique spaces a cleaning robot visits in a binary matrix room. Understand robot movement rules, matrix traversal, and edge conditions to implement an efficient solution that tracks visited spaces and direction-based repeats.
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