Plutonian Pebbles [Day 11 - Advent of Code 2024 - Python] @0xdf
Plutonian Pebbles [Day 11 - Advent of Code 2024 - Python]  @0xdf
Uploaded December 2024 | Updated November 2026, 2 hours ago
I'm given a list of numbers. At each iteration (blink), a stone either splits in two or has it's value change. This leads to expoential growth in the length of the list. In part 1, I just follow the rules and track the list. In part two, I'll use a recursive cached function to let the calculation happen in reasonable time.

2024 AOC repo: gitlab.com/0xdf/aoc2024
2024 AOC Intro vide: youtube.com/watch?v=4XKZZrhhiQE
VSCode Debug video: youtube.com/watch?v=cNhtk2Ob4B8

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Part1 introduction
[01:30] Strategy
[02:19] Setup / data overview
[02:48] Parsing input
[03:20] Inefficient solution
[06:14] Solving part 1
[06:31] Part 2 challenge
[06:40] Showing inefficient solution too slow
[08:00] functools cache
[10:09] Recursive count func
[12:29] Summing all stones
[12:50] Fixing str/int bug
[14:03] Solving part 2
[14:24] Conclusion

#adventofcode #python
Plutonian Pebbles [Day 11 - Advent of Code 2024 - Python]State of 0xdf (2026)Day 19: Aplenty [AOC2023 Python]Day 3: Gear Ratios [AOC2023 Python]Creating VMs with VagrantAnalysis of CVE-2023-37474 in CopyPartyDay 6: Wait For It [AOC2023 Python]Day 19 - An Elephant Named Joseph [Revival of Code 2023 - Advent of Code 2016]Linux 101 [Sans Holiday Hack 2023]Reassembling Werkzeugs Pin - Getting RCE in HackTheBox Agile [Part 2]Playing with a (CTF) Smart Contract [Hackvent 2022 - Day 6]Automating Malicious Zip with Symlinks [HackTheBox Zipping]
0xdf |

Plutonian Pebbles [Day 11 - Advent of Code 2024 - Python]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER