โ† Visa questions

Check if a sequence of moves for a robot is circular

Filed under Visa

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.

Related Visa questions

Collected from public candidate posts and coding forums. Updated Nov 2026.