Day 6 Solutions

https://adventofcode.com/2023/day/6

3 points · 4 comments · view on lemmy.world

4 Comments

hal9001@lemmy.world · 1 pts · 2y (1 reply)

This one was a high school flashback. Ended up using the quadratic formula to find the root of the curve.

clojure solution

Glaedr304@lemmy.world · 2 pts · 2y

I did the same thing! Took me a few minutes to figure out what do to with the decimal answers, before I realized on the continuous graphs they were the min and max

bobredfox@feddit.de · 1 pts · 2y

Ended Up with iterating over all possible solutions and filter all possibilitys which where greater than the record. Not elegant, but sufficient fast for this purpose.

For Part 2 I merged the values by hand in the Input data.

Solution in Rust

eskimofry@lemmy.world · 1 pts · 2y

Brute force was good enough I guess?