Still recovering from being sick but here's day 7 of #AdventOfCode!
Recursion worked but was a little slower than some goofy looping. There must be a way to be clever on part 2 but the brute-force solution ran to completion after a long time 🤷♂️
Code on GitHub:
https://github.com/ataustin/advent-of-code/blob/main/y2024/d07/solution.R
#RStats
Recursion worked but was a little slower than some goofy looping. There must be a way to be clever on part 2 but the brute-force solution ran to completion after a long time 🤷♂️
Code on GitHub:
https://github.com/ataustin/advent-of-code/blob/main/y2024/d07/solution.R
#RStats
Comments
Also me: What's 2^12... 4096, that's not too bad.
Still me: What's 3^12... oh no
In python & go, the straightforward recursion was much faster even for part one.
https://github.com/fizbin/adventofcode/blob/main/aoc2024/aoc7.hs