Paste: AOC day 7

Author: chunes
Mode: factor
Date: Tue, 7 Dec 2021 07:07:27
Plain Text |
"input.txt" ascii file-lines first "," split [ dec> ] map
dup [ median ] keep n-v vabs sum .
dup dup minmax [a,b] [ [ - abs [1,b] sum ] curry map-sum ]
[ with infimum-by ] keep call .

New Annotation

Summary:
Author:
Mode:
Body: