552 Student Attendance Record II
1. Question
Input:
n = 2
Output:
8
Explanation:
There are 8 records with length 2 will be regarded as rewardable:
"PP" , "AP", "PA", "LP", "PL", "AL", "LA", "LL"
Only "AA" won't be regarded as rewardable owing to more than one absent times.2. Implementation
3. Time & Space Complexity
Last updated