Fundamentals
/
Robot Bounded in Circle
⏸
00:00
↻
← Prev
Next →
▶
Question
Given a string of robot instructions ("G" forward, "L" turn left, "R" turn right) starting at (0,0) facing north, return true if the robot is bounded in a circle (returns to origin or faces a non-north direction after one cycle).
▶
Understand
▶
Approach
▶
My Code
▶
Reference Solution
Compare
11