AOC2022/rust/1
2022-12-02 12:39:03 +00:00
..
input.txt push my shit 2022-12-02 12:25:18 +00:00
main Also I'm retard and sum exists 2022-12-02 12:39:03 +00:00
main.rs Also I'm retard and sum exists 2022-12-02 12:39:03 +00:00
README.me Fixed bug where it would ignore last elf. 2022-12-02 12:36:48 +00:00

I just overwrote the first puzzle's solution with the second's, I'll have to be more organised in future days

First puzzle was just a single `let max: i32 = 0` instead of the `top` Vec, so same thing just a bit simpler

For the second part I keep the top 3 values and add a new one whenever it's at least greater than the smallest one, and keep those 3 values sorted so the smallest one is always first