(*->2022)~made it clear what advent of code I'm doing
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
(defvar input (uiop:read-file-string "puzzle-1-input.txt"))
|
(defvar input (uiop:read-file-string "2022/1-input"))
|
||||||
(defvar *sep (format nil "~%~%"))
|
(defvar *sep (format nil "~%~%"))
|
||||||
|
|
||||||
(defun get-lists (input)
|
(defun get-lists (input)
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
(defvar input (uiop:read-file-string "puzzle-2-input.txt"))
|
(defvar input (uiop:read-file-string "2022/2-input"))
|
||||||
;; Each newline represents a new round, which we should parse on the go
|
;; Each newline represents a new round, which we should parse on the go
|
||||||
|
|
||||||
(defun sensible-convert-input (str)
|
(defun sensible-convert-input (str)
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
(defvar input (uiop:read-file-string "puzzle-3-input.txt"))
|
(defvar input (uiop:read-file-string "2022/3-input"))
|
||||||
|
|
||||||
(defun split-string-in-two (s)
|
(defun split-string-in-two (s)
|
||||||
(let ((len (length s)))
|
(let ((len (length s)))
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
;; and since we're working with integers, it's simply checking if the
|
;; and since we're working with integers, it's simply checking if the
|
||||||
;; bounds are included i.e. c in [a,b] and d in [a,b]
|
;; bounds are included i.e. c in [a,b] and d in [a,b]
|
||||||
|
|
||||||
(defvar input (uiop:read-file-string "puzzle-4-input.txt"))
|
(defvar input (uiop:read-file-string "2022/4-input"))
|
||||||
|
|
||||||
(defun parse-bound (str)
|
(defun parse-bound (str)
|
||||||
"Given STR=\"a-b\" return (a b)"
|
"Given STR=\"a-b\" return (a b)"
|
||||||
Reference in New Issue
Block a user