Leetcode 2061. Number of Spaces Cleaning Robot Cleaned
Simulate a robot moving on a 2D grid with obstacles (and/or a sequence of movement/rotation commands) and compute how many unique grid cells it cleans. The core challenge is correctly handling boundaries, obstacles and revisited cells efficiently—typically via simulation or graph traversal with a visited set.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.