Student Attendance Record I
一行
class Solution(object):
def checkRecord(self, s):
return s.count('A') <= 1 and s.count('LLL') == 0
一行
class Solution(object):
def checkRecord(self, s):
return s.count('A') <= 1 and s.count('LLL') == 0