551-Student-Attendance-Record-I

Sat 17 May 2025

https://leetcode.com/problems/student-attendance-record-i

import pyutil as pyu
pyu.get_local_pyinfo()
print(pyu.ps2("python-dotenv"))
from typing import List
class Solution:
  def checkRecord(self, s: str) -> bool:
    return s.count('A') <= 1 and 'LLL' not in s
new Solution().checkRecord()

Score: 5

Category: leetcode