874-Walking-Robot-Simulation
Sat 17 May 2025
https://leetcode.com/problems/walking-robot-simulation
import pyutil as pyu
pyu.get_local_pyinfo()
print(pyu.ps2("python-dotenv"))
from typing import List
class Solution:
def robotSim(self, commands: List[int], obstacles: List[List[int]]) -> int:
dirs = [0, 1, 0, -1, 0]
ans = 0
d = 0 # 0 := north, 1 := east, 2 := south, 3 := west …Category: leetcode
Read More