1# Runtime: 88 ms (Top 52.68%) | Memory: 14.1 MB (Top 38.28%)2class Solution:3 def judgeCircle(self, moves: str) -> bool:4 x = Counter(moves)5 flag = False6 if x["U"] == x["D"] and x["L"] == x["R"]:7 flag = True8 return flag
WPM •0 •0
ACC •0 •0
TIME •0