about summary refs log tree commit diff
path: root/users/sterni/exercises/aoc/2022
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-12-03T01·03+0100
committerclbot <clbot@tvl.fyi>2022-12-03T01·25+0000
commit9fed61297a9766be4e5bd4c0a4461cfb176115c9 (patch)
tree6cad2bcdf5814812062e869a0124dc45a78b88fe /users/sterni/exercises/aoc/2022
parentc0e70de17a6637a2018c83429acbeba32583bd1d (diff)
feat(sterni/aoc/2022): day02 k solution r/5378
Uses the same idea as the BQN solution, but is very concise.

Change-Id: I876208e5e86f28240f4a3384d16321fd92d077eb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7499
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'users/sterni/exercises/aoc/2022')
-rw-r--r--users/sterni/exercises/aoc/2022/02/2.k1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/sterni/exercises/aoc/2022/02/2.k b/users/sterni/exercises/aoc/2022/02/2.k
new file mode 100644
index 000000000000..9b6d10058d77
--- /dev/null
+++ b/users/sterni/exercises/aoc/2022/02/2.k
@@ -0,0 +1 @@
++/{{y+1+3*3!1+y-x}[x]'y,3!x+y-1}.'3!"ABCXYZ"?(0:"input")_'1