Skip to content

Commit 035f59d

Browse files
author
Joseph Luce
authored
Update robot_room_cleaner.md
1 parent 6a13904 commit 035f59d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

real_interview_questions/Google/robot_room_cleaner.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ class Solution(object):
172172
return next_pos
173173
174174
def rotate_right(self, robot):
175+
# mimicking a clockwise direction scheme
176+
# could use a circular linked list and a hash table to be more efficient
175177
for index, direction in enumerate(self.dirs):
176178
if direction == self.curr_dir:
177179
if index >= len(self.dirs)-1:

0 commit comments

Comments
 (0)