Judge Route Circle
太简单了,算上下和左右的个数是否能抵消就行了
class Solution(object):
def judgeCircle(self, moves):
"""
:type moves: str
:rtype: bool
"""
return moves.count('U') == moves.count('D') and moves.count('L') == moves.count('R')