Linen Layout [Day 19 - Advent of Code 2024 - Python] @0xdf
Linen Layout [Day 19 - Advent of Code 2024 - Python]  @0xdf
Uploaded December 2024 | Updated November 2026, 3 hours ago
I'm given a list of patterns, and then a bigger list of much bigger patterns. For each bigger pattern, I first need to figure out if I can make it from some combination of the smaller patterns. Then I need to figure out how many ways I can make it from the smaller patterns. I'll use recursion and caching to solve this relatively quickly.

2024 AOC repo: gitlab.com/0xdf/aoc2024
2024 AOC Intro video: 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:26] Setup / data overview
[02:10] Parsing input
[03:00] Recursive function to check pattern
[04:48] Counting valid patterns
[05:18] Solving part 1
[05:41] Part 2 challenge
[06:08] Refactor to get count
[08:08] Fixing silly typo
[09:00] Adding cache
[09:45] Solving part 2

#adventofcode #python
Linen Layout [Day 19 - Advent of Code 2024 - Python]Race Condition [Day 20 - Advent of Code 2024 - Python]Brute-Forcing File Read with MD5s [HackTheBox Intentions]Digging into OFBiz ExploitationAdvent of Code 2025 - PreviewDay 8: Haunted Wasteland [AOC2023 Python]Historian Hysteria [Day 1 - Advent of Code 2024 - 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 Vagrant
0xdf |

Linen Layout [Day 19 - Advent of Code 2024 - Python]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER