Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
(defun max-mismatch (list)
|
||||
(if (cdr list)
|
||||
(max (apply #'max (mapcar #'(lambda (w2) (mismatch (car list) w2)) (cdr list))) (max-mismatch (cdr list)))
|
||||
0 ))
|
||||
|
||||
(with-open-file (f "days-of-the-week.txt" :direction :input)
|
||||
(do* ((row (read-line f nil nil) (read-line f nil nil)))
|
||||
((null row) t)
|
||||
(format t "~d ~a~%" (1+ (max-mismatch (SPLIT-SEQUENCE:split-sequence #\Space row))) row) ))
|
||||
Loading…
Add table
Add a link
Reference in a new issue