Quick solve, but slightly hacky part 2. Still fun!
github.com/Telsak/adven...
Quick solve, but slightly hacky part 2. Still fun!
github.com/Telsak/adven...
That was really fun, and a little braintwister until I sorted out some misplaced array indices! 1&2 = Done :)
github.com/Telsak/adven...
That was really fun, and a little braintwister until I sorted out some misplaced array indices! 1&2 = Done :)
github.com/Telsak/adven...
I spent too much time trying to be clever with prime numbers in part 2, but sometimes you just gotta keep it simple..
github.com/Telsak/adven...
Onto day #3! ❤
I spent too much time trying to be clever with prime numbers in part 2, but sometimes you just gotta keep it simple..
github.com/Telsak/adven...
Onto day #3! ❤
github.com/Telsak/adven...
Maybe this time I go back and write some visualization? Pygame perhaps?🤩
github.com/Telsak/adven...
Maybe this time I go back and write some visualization? Pygame perhaps?🤩
8 seconds runtime on part 2, but fuck it. I got it done without knowing how the tree looked! I focused on using the output from part 1, and it worked!
github.com/Telsak/adven... #onward
8 seconds runtime on part 2, but fuck it. I got it done without knowing how the tree looked! I focused on using the output from part 1, and it worked!
github.com/Telsak/adven... #onward
Ok, this was a lot of janky code. Part 1 -> bruteforce, part 2... wellllll... hey that looks like an equation.. hm.
MORE JANK!
github.com/Telsak/adven...
Ok, this was a lot of janky code. Part 1 -> bruteforce, part 2... wellllll... hey that looks like an equation.. hm.
MORE JANK!
github.com/Telsak/adven...
Everything is fine. Don't worry. Just write code. Don't look at the dumpster fire that is social media rn. #breathe
github.com/Telsak/adven...
Everything is fine. Don't worry. Just write code. Don't look at the dumpster fire that is social media rn. #breathe
github.com/Telsak/adven...
This took so long it's almost embarassing! I did learn about why keeping a massive array in memory is bad though! Also, memoization with lru_cache decorator was neat!
On to day 12!
This took so long it's almost embarassing! I did learn about why keeping a massive array in memory is bad though! Also, memoization with lru_cache decorator was neat!
On to day 12!
Feels kinda weird that it was "easy" to just comment out a few lines and bam done, but I'll take it!
github.com/Telsak/adven...
Feels kinda weird that it was "easy" to just comment out a few lines and bam done, but I'll take it!
github.com/Telsak/adven...
This took entirely too long! I think I completely rewrote part 2 at least 4 times when I realized I misunderstood some parts of the instructions. 🤷♂️
github.com/Telsak/adven...
This took entirely too long! I think I completely rewrote part 2 at least 4 times when I realized I misunderstood some parts of the instructions. 🤷♂️
github.com/Telsak/adven...
<3 AOC
<3 AOC
When in doubt, try to overengineer things. Then start deleting stuff randomly and stumble onto the solution! #franksinatra
When in doubt, try to overengineer things. Then start deleting stuff randomly and stumble onto the solution! #franksinatra
Seriously, thought I was clever with my solution. Runtime? Oh what about a cool 4 minutes to solution.. #stillcounts
Seriously, thought I was clever with my solution. Runtime? Oh what about a cool 4 minutes to solution.. #stillcounts
When you dread complex-looking things and they turn out to be ... not as complex. Ooops
When you dread complex-looking things and they turn out to be ... not as complex. Ooops
Why make it efficient when you can make it fun?! ^^
Why make it efficient when you can make it fun?! ^^
Lets gooooo! 🔥
Lets gooooo! 🔥