JAVA_Student Attendance Record I_LeetCode 551 풀이 class Solution { public boolean checkRecord(String s) { return !s.contains("LLL") && s.indexOf('A') == s.lastIndexOf('A'); } } * 출처 Student Attendance Record I - LeetCode Student Attendance Record I - 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.
The record only contains the following three characters: * 'A': Absent. * 'L': Late....
#
JAVA
#
JAVA_LeetCode551
#
JAVA_StudentAttendanceRecordI
#
JAVA_StudentAttendanceRecordI_LeetCode551
#
StudentAttendanceRecordI_LeetCode551