Part1 was trivial. Part2, I went in circles debugging the stop conditions of my recursion only to realize the solution space was huge. Used python's caching decorator (functools.lru_cache)
Part1 was trivial. Part2, I went in circles debugging the stop conditions of my recursion only to realize the solution space was huge. Used python's caching decorator (functools.lru_cache)
Not quite sure why this one was so easy. Re-used my Dijkstra's search from Day 16. Part2 was just simple iteration.
Not quite sure why this one was so easy. Re-used my Dijkstra's search from Day 16. Part2 was just simple iteration.
Part1 was fun.
Part2, tried to brute force a sequencial search with early exit.
Didn't work.
Tried caching.
Didn't work.
Finally got it after re-reading the entire (hint!) puzzle.
Part1 was fun.
Part2, tried to brute force a sequencial search with early exit.
Didn't work.
Tried caching.
Didn't work.
Finally got it after re-reading the entire (hint!) puzzle.
Not getting any easier. Part1, failed miserably going depth-first, and had to call upon our friend Dijkstra with a priority heap queue. Part2 took like 10 min to compute. 🫢
Not getting any easier. Part1, failed miserably going depth-first, and had to call upon our friend Dijkstra with a priority heap queue. Part2 took like 10 min to compute. 🫢
This was super fun to solve. For part2 I first tried to visualize a time-lapse but that took way too long. Had to come up with a clustering heuristic that did the trick!
This was super fun to solve. For part2 I first tried to visualize a time-lapse but that took way too long. Had to come up with a clustering heuristic that did the trick!
So proud of myself! It's the first time I do part2 in seconds because I made smart choices in part1 by choosing not to brute force.
So proud of myself! It's the first time I do part2 in seconds because I made smart choices in part1 by choosing not to brute force.
Took me a while to get part2 logic nailed - and finally it was working in all examples, but failing for the input 🤯. Very painful. I think I got garden fencing PTSD now.
Took me a while to get part2 logic nailed - and finally it was working in all examples, but failing for the input 🤯. Very painful. I think I got garden fencing PTSD now.
This one was super fun! Got part1 in less than 20min, but no amount of optimization would work for part2. Had to come with a completely new strategy, and that took a while!
This one was super fun! Got part1 in less than 20min, but no amount of optimization would work for part2. Had to come with a completely new strategy, and that took a while!
Part2 made me sweat quite a bit. Troubleshooting recursion on very large inputs was not fun.
Part2 made me sweat quite a bit. Troubleshooting recursion on very large inputs was not fun.
Lesson of the day: Python does "short-circuit evaluation" for boolean expressions. Using "|" instead of "or" did the trick.
Lesson of the day: Python does "short-circuit evaluation" for boolean expressions. Using "|" instead of "or" did the trick.
Lesson of the day: never use mutable data structures in recursive functions. 🤦♂️
Lesson of the day: never use mutable data structures in recursive functions. 🤦♂️
Learned a very humbling lesson about the difference between deepcopy and shallowcopy in python. 🫠
Learned a very humbling lesson about the difference between deepcopy and shallowcopy in python. 🫠
I just completed "Print Queue" - Day 5 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/5
I just completed "Print Queue" - Day 5 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/5
I just completed "Ceres Search" - Day 4 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/4
I just completed "Ceres Search" - Day 4 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/4
Senior dev: It's a trap!
I just completed "Mull It Over" - Day 3 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/3
Senior dev: It's a trap!
I just completed "Mull It Over" - Day 3 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/3
I've completed "Red-Nosed Reports" - Day 2 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/2
I've completed "Red-Nosed Reports" - Day 2 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/2
Anyone doing Advent of Code this year?
Anyone doing Advent of Code this year?
Evidence of leadership.
www.forbes.com/sites/carlto...