An attendance record for a student is represented as a string where each character denotes the attendance status for a single day:
'A': Absent.
'L': Late.
'P': Present.
A student is eligible for an attendance award if their record satisfies both of the following criteria:
The student was absent strictly fewer than 'A' characters in total).
The student was never late for 'L' characters).
Given an integer n, return the number of possible attendance records of length n that make a student eligible for an award. Since the answer may be very large, return it modulo
Constraints:
n
An attendance record for a student is represented as a string where each character denotes the attendance status for a single day:
'A': Absent.
'L': Late.
'P': Present.
A student is eligible for an attendance award if their record satisfies both of the following criteria:
The student was absent strictly fewer than 'A' characters in total).
The student was never late for 'L' characters).
Given an integer n, return the number of possible attendance records of length n that make a student eligible for an award. Since the answer may be very large, return it modulo
Constraints:
n