2 ms·
and this is the solution in Q, including paring the file: `(+/) 1_ (>':) "I" $ read0 `:input_1.txt` I don't think their second solution actually works unless I
by maximus-decimus 5y ago
and this is the solution in Q, including paring the file: `(+/) 1_ (>':) "I" $ read0 `:input_1.txt`
I don't think their second solution actually works unless I'm missing something though : +/¯3↓x<3⊖x
This compares every element to the the one 3 positions before it, when the question was to take the sum of each 3 elements and check if it's smaller than the previous sum.