You are given a string s representing an attendance record for a student, where each character indicates their attendance on that day:
'A': Absent.
'L': Late.
'P': Present.
The student is eligible for an attendance award if they satisfy both of the following conditions:
The student was absent ('A') for strictly fewer than
The student was never late ('L') for
Return true if the student is eligible for the attendance award, or false otherwise.
Constraints:
s.length
s[i] is either 'A', 'L', or 'P'.
You are given a string s representing an attendance record for a student, where each character indicates their attendance on that day:
'A': Absent.
'L': Late.
'P': Present.
The student is eligible for an attendance award if they satisfy both of the following conditions:
The student was absent ('A') for strictly fewer than
The student was never late ('L') for
Return true if the student is eligible for the attendance award, or false otherwise.
Constraints:
s.length
s[i] is either 'A', 'L', or 'P'.