LeetCode 489: Robot Room Cleaner
Problem Restatement We control a robot cleaner inside a room modeled as a grid. Each cell is either: Value Meaning 1 Open cell 0 Blocked cell But the algorithm does not receive the grid directly. Instead, we only control the robot through four APIs: robot.move() robot.turnLeft() robot.turnRight() robot.clean() The robot starts at an unknown open cell and initially faces up. The room boundary is surrounded by walls. All open cells...