Day 6: add timed solve-day function

master
4903000 4 years ago
parent c7e72e49e0
commit b5ee7d1ca0

@ -231,3 +231,8 @@
(length (mapcan (lambda (entry)
(reduce #'intersection (map 'list (lambda (l) (coerce l 'list)) entry)))
data)))
(defun solve-6 (file)
(let ((data (read-6 file)))
(time (progn (print (solve-6-1 data))
(print (solve-6-2 data))))))

Loading…
Cancel
Save