Paste: AOC day 7 better

Author: chunes
Mode: factor
Date: Tue, 7 Dec 2021 07:15:26
Plain Text |
"input.txt" ascii file-lines first "," split [ dec> ] map  ! parse
dup [ median ] keep n-v vabs sum .                         ! part 1
dup mean >integer '[ _ - abs [1,b] sum ] map-sum .         ! part 2

New Annotation

Summary:
Author:
Mode:
Body: