Fundamentals/Robot Bounded in Circle
← PrevNext →
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).