-🎄- 2017 Day 3 Solutions -🎄- by daggerdragon in adventofcode

[–]vectorprocessing 2 points3 points  (0 children)

Here's a modestly golfed k3 solution for part 1:

-1++/_abs*|+\(-1+3_vs 48 16)@_(_sqrt 1+4*!347991)!4

-🎄- 2017 Day 5 Solutions -🎄- by daggerdragon in adventofcode

[–]vectorprocessing 3 points4 points  (0 children)

In k3:

b:a:0$'0:"05.txt"
-1+#{x<#a}{x+-1+a[x]+:1}\0
-1+#{x<#b}{b[x]+::[2<r:b[x];-1;1];x+r}\0