Question: You are given a string representing an attendance record for a student. The record only contains the following three characters: 1 . ' A '
You are given a string representing an attendance record for a student. The record only contains the following three characters: A : Absent. L : Late. P : Present. A student could be rewarded if his attendance record doesn't contain more than one Aabsent or more than two continuous Llate You need to return whether the student could be rewarded according to his attendance record. Input Format: First line contains the attendance string. Output Format: Boolean
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
