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 5cee8cb commit 6559841Copy full SHA for 6559841
README.md
@@ -10,6 +10,8 @@ leetcode 测试
10
11
##### 包含的内容如下
12
13
+https://leetcode-cn.com/problems/student-attendance-record-i/
14
+
15
https://leetcode.cn/problems/student-attendance-record-ii
16
17
https://leetcode.cn/problems/optimal-division/
student-attendance-record-i/index.ts
@@ -0,0 +1,4 @@
1
+export default function checkRecord(s: string): boolean {
2
+ return (countBy(s)["A"] ?? 0) < 2 && !s.includes("L".repeat(3));
3
+}
4
+import { countBy } from "../deps.ts";
0 commit comments