Skip to content

Commit 145bbaf

Browse files
authored
Update number-of-spaces-cleaning-robot-cleaned.py
1 parent 5734d60 commit 145bbaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/number-of-spaces-cleaning-robot-cleaned.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def numberOfCleanRooms(self, room):
88
:rtype: int
99
"""
1010
directions = [(0, 1), (1, 0), (0, -1), (-1, 0)]
11-
result = d = r = c = 0
11+
result = r = c = d = 0
1212
while not room[r][c]&(1<<(d+1)):
1313
result += (room[r][c]>>1) == 0
1414
room[r][c] |= (1<<(d+1))

0 commit comments

Comments
 (0)