From 3301862db14e13cf6a8603210920080701f22069 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Tue, 2 Dec 2025 08:06:17 -0500 Subject: [PATCH] [p2] Initial boilerplate --- p2/p2.org | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 p2/p2.org diff --git a/p2/p2.org b/p2/p2.org new file mode 100644 index 0000000..00e2552 --- /dev/null +++ b/p2/p2.org @@ -0,0 +1,17 @@ +#+title: Solution to p2 + +First load the data as a list of cons cells (stsrt . end) +#+begin_src emacs-lisp :results none + (with-temp-buffer + (insert-file-contents "input-test") + (advent/replace-multiple-regex-buffer + '(("," . "\n") + ("-" . " . ") + ("^" . "(") + ("$" . ")"))) + (goto-char (point-min)) + (insert "(setq data '(") + (goto-char (point-max)) + (insert "))") + (eval-buffer)) +#+end_src