NeetCode #920LC-1041MediumMath & Geometry
← Back to All Problems

#920 · #1041 · Robot Bounded In Circle(困于环中的机器人)

📌 Problem Statement & Constraints

A robot starts at (0, 0) facing north on an infinite plane and executes a list of instructions repeatedly forever: G moves forward one unit, L turns left 90 degrees, and R turns right 90 degrees. Return true if there exists a circle in the plane that the robot never leaves. Constraints: 1 <= instructions.length <= 100, and the string contains only G, L and R.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!