2 ms·
Thanks for pointing out that specific example and comparison. The solution seems like it's just a less readable pipeline. puzzle_input split "\n\n" map int
by bmitc 3y ago
Thanks for pointing out that specific example and comparison. The solution seems like it's just a less readable pipeline.
puzzle_input split "\n\n" map ints map sum then max;
puzzle_input split "\n\n" map ints map sum then sort then (_[-3:]) then sum;