this post was submitted on 06 Dec 2023
3 points (100.0% liked)

Advent of Code

295 readers
1 users here now

Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

https://adventofcode.com

founded 2 years ago
MODERATORS
top 4 comments
sorted by: hot top controversial new old
[–] hal9001 1 points 1 year ago (1 children)

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

clojure solution

[–] Glaedr304 2 points 1 year ago

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

[–] [email protected] 1 points 1 year ago

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 1 points 1 year ago

Brute force was good enough I guess?