Skip to content

Commit da290d1

Browse files
refactor 551
1 parent 118277b commit da290d1

File tree

1 file changed

+0
-21
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-21
lines changed

src/main/java/com/fishercoder/solutions/_551.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
11
package com.fishercoder.solutions;
22

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-
*/
243
public class _551 {
254

265
public static class Solution1 {

0 commit comments

Comments
 (0)