3 ms·
Ended up being 5 lines of code in C. (Cue: reactions from others that it's a one liner in Haskell, or that it's obviously simple and easy since the solution wa
by bugsy 16y ago
Ended up being 5 lines of code in C.
(Cue: reactions from others that it's a one liner in Haskell, or that it's obviously simple and easy since the solution was so short.)
(The five lines didn't include the data, but a sixth very long line takes care of that if really felt to be part of the count.)