Python 1-liner


  • 0

    I knew it is not optimal in time ...

        def checkRecord(self, s):
            return s.count('A') <= 1 and s.count('LLL') == 0
    

Log in to reply
 

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