My second day solution took me much longer than necessary.
I managed to get most of it done between getting the kids to the bus and having my first meeting of the day. Though part B was off… And throughout the day, I took some minutes between meetings or during breaks to try to fix this.
Now, 12 hours after I have started the AoC day, I found a working solution, and in hindsight, my previous iterations, either skipped the variant with only the first or the last level, which lead to skewed results ![]()
https://gitlab.com/NobbZ/aoc_ex/-/blob/main/lib/y2024/d02.ex?ref_type=heads






















