about summary refs log tree commit diff
path: root/day04.k
diff options
context:
space:
mode:
Diffstat (limited to 'day04.k')
-rw-r--r--day04.k7
1 files changed, 7 insertions, 0 deletions
diff --git a/day04.k b/day04.k
new file mode 100644
index 0000000..9c16683
--- /dev/null
+++ b/day04.k
@@ -0,0 +1,7 @@
+n:{.:x@&~(x<"0")|x>"9"}
+
++/n'm:{(1_-6#-1_x)~5#!=v@>{(+/x=*x),-*x}'v,\:v:-7_x^"-01234567890"}#0:"day04"
+/ 361724
+
+n@*{"north"~5#`c$"a"+26!(n@x)+x-"a"}#m
+/ 482