1041-Robot-Bounded-In-Circle
Fri 14 November 2025
https://leetcode.com/problems/robot-bounded-in-circle
import pyutil as pyu
pyu.get_local_pyinfo()
print(pyu.ps2("python-dotenv"))
from typing import List
class Solution:
def isRobotBounded(self, instructions: str) -> bool:
x = 0
y = 0
d = 0
directions = [(0, 1), (1, 0), (0, -1), (-1, 0)]
for instruction in instructions:
if instruction == 'G':
x …Category: leetcode
Read More