ruby one liner


  • 0
    C
    def judge_circle moves
      moves.count('L') == moves.count('R') && moves.count('U') == moves.count('D')
    end
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.