Given a sequence of moves (e.g., 'G' for move forward, 'L' for turn left, 'R' for turn right), determine if the robot returns to the origin (0,0) after executing the sequence one or more times.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.