File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
src/main/java/com/fishercoder/solutions Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 1
1
package com .fishercoder .solutions ;
2
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
3
public class _551 {
25
4
26
5
public static class Solution1 {
You can’t perform that action at this time.
0 commit comments