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

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0