Discussion thread for day 6 of the Advent of Code - https://adventofcode.com/2023/day/6
Did some prep work on the input as well since I was too lazy to copy each record one by one....
Day 6 done to give a nice little serotonin boost after yesterday's part 2 breakdown! Not winning tool golf with this one but 2 stars = 2 stars.
Not a pretty solution, but a simple one
started out thinking to solve this using a quadratic formula like @CoG - but it turns out that the brue-force method runs in just a few seconds anyway, so rather spend extra time finishing Day 5...
I will go back and take a look at how others have solve this thought - just for learning.
Team brute force! 17 seconds to generate 60m records