0
点赞
收藏
分享

微信扫一扫

Leetcode_Python 551 学生出勤记录 I


Leetcode_Python 551 学生出勤记录 I_python

解题思路

“A”的数量小于2,"LLL"在s中不存在即可

代码

class Solution:
    def checkRecord(self, s: str) -> bool:
        return s.count("A") < 2 and "LLL" not in s


举报

相关推荐

0 条评论