aboutsummaryrefslogtreecommitdiff
path: root/leetcode/lc-551-student-attendance-record-1.rkt
diff options
context:
space:
mode:
Diffstat (limited to 'leetcode/lc-551-student-attendance-record-1.rkt')
-rw-r--r--leetcode/lc-551-student-attendance-record-1.rkt11
1 files changed, 0 insertions, 11 deletions
diff --git a/leetcode/lc-551-student-attendance-record-1.rkt b/leetcode/lc-551-student-attendance-record-1.rkt
deleted file mode 100644
index c5f1456..0000000
--- a/leetcode/lc-551-student-attendance-record-1.rkt
+++ /dev/null
@@ -1,11 +0,0 @@
-#lang racket
-
-(define/contract (check-record s)
- (-> string? boolean?)
- (define s-list (map string (string->list s)))
- (cond [(<= 2 (count (curry string=? "A") s-list)) #false]
- [(string-contains? s "LLL") #false]
- [else #true]))
-
-(check-record "PPALLP")
-(check-record "PPALLL") \ No newline at end of file