We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 118277b commit da290d1Copy full SHA for da290d1
src/main/java/com/fishercoder/solutions/_551.java
@@ -1,26 +1,5 @@
1
package com.fishercoder.solutions;
2
3
-/**
4
- * 551. Student Attendance Record I
5
- *
6
- * You are given a string representing an attendance record for a student. The record only contains the following three characters:
7
-
8
- 'A' : Absent.
9
- 'L' : Late.
10
- 'P' : Present.
11
- A student could be rewarded if his attendance record doesn't contain more than one 'A' (absent) or more than two continuous 'L' (late).
12
13
- You need to return whether the student could be rewarded according to his attendance record.
14
15
- Example 1:
16
- Input: "PPALLP"
17
- Output: True
18
19
- Example 2:
20
- Input: "PPALLL"
21
- Output: False
22
23
- */
24
public class _551 {
25
26
public static class Solution1 {
0 commit comments