Student Attendance Record I Problem
Student Attendance Record I Problem — ExecCode Easy DSA Practice
Solve the Student Attendance Record I problem on ExecCode. Free online easy DSA practice in String. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Description You are given a string s representing an attendance record for a student where each character signifies whether the student was absent, late, or present on that day. Your task is to compute the required answer and return true if the student is eligible for an attendance award, or false otherwise. The record only contains the following three characters: - 'A': Absent. - 'L': Late. - 'P': Present.
Examples
Input {"s": "PPALLP"}; Output True. Input {"s": "PPALLL"}; Output False
Constraints
1 <= s.length <= 1000 s[i] is either 'A', 'L', or 'P'.
Practice Student Attendance Record I free on ExecCode. Browse DSA problems, topic map, and placement guides.