#adventodcode — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #adventodcode, aggregated by home.social.
-
CW: Advent of Code 2025 Day 11 Spoilers
After the last few days of difficult puzzles, today was a breath of fresh air.
Counting paths through a DAG is a classic memoizable recursive puzzle. Part 1 was just that.
Part 2 adds two new variables to track, but you just add them to the memoized parameters (Python's `@cache` operator makes that easy) and keep do the same thing, with the addition of updating the flags if you're on either the `dac` or `fft` nodes.
Easy peasy, runs almost instantly.
https://codeberg.org/biesnecker/aoc-anyhow/src/branch/main/202511.py
-
CW: Advent of Code 2025 Day 11 Spoilers
After the last few days of difficult puzzles, today was a breath of fresh air.
Counting paths through a DAG is a classic memoizable recursive puzzle. Part 1 was just that.
Part 2 adds two new variables to track, but you just add them to the memoized parameters (Python's `@cache` operator makes that easy) and keep do the same thing, with the addition of updating the flags if you're on either the `dac` or `fft` nodes.
Easy peasy, runs almost instantly.
https://codeberg.org/biesnecker/aoc-anyhow/src/branch/main/202511.py
-
CW: Advent of Code 2025 Day 11 Spoilers
After the last few days of difficult puzzles, today was a breath of fresh air.
Counting paths through a DAG is a classic memoizable recursive puzzle. Part 1 was just that.
Part 2 adds two new variables to track, but you just add them to the memoized parameters (Python's `@cache` operator makes that easy) and keep do the same thing, with the addition of updating the flags if you're on either the `dac` or `fft` nodes.
Easy peasy, runs almost instantly.
https://codeberg.org/biesnecker/aoc-anyhow/src/branch/main/202511.py
-
CW: Advent of Code 2025 Day 11 Spoilers
After the last few days of difficult puzzles, today was a breath of fresh air.
Counting paths through a DAG is a classic memoizable recursive puzzle. Part 1 was just that.
Part 2 adds two new variables to track, but you just add them to the memoized parameters (Python's `@cache` operator makes that easy) and keep do the same thing, with the addition of updating the flags if you're on either the `dac` or `fft` nodes.
Easy peasy, runs almost instantly.
https://codeberg.org/biesnecker/aoc-anyhow/src/branch/main/202511.py
-
CW: Advent of Code 2025 Day 11 Spoilers
After the last few days of difficult puzzles, today was a breath of fresh air.
Counting paths through a DAG is a classic memoizable recursive puzzle. Part 1 was just that.
Part 2 adds two new variables to track, but you just add them to the memoized parameters (Python's `@cache` operator makes that easy) and keep do the same thing, with the addition of updating the flags if you're on either the `dac` or `fft` nodes.
Easy peasy, runs almost instantly.
https://codeberg.org/biesnecker/aoc-anyhow/src/branch/main/202511.py