Given a sequence of moves ('G' for go, 'L' for left, 'R' for right) given to a robot, determine if the robot returns to the origin or moves in a bounded circle.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.