Day 19: Aplenty [AOC2023 Python] @0xdf
Day 19: Aplenty [AOC2023 Python]  @0xdf
Uploaded December 2023 | Updated November 2026, 3 hours ago
For Advent of Code 2023 Day 19, I get a series of rules that apply to parts based on various features of the part. The rules show what stage to pass the part to next, before each part is eventually accepted or rejected. In part 1, I process a list of a few hundred parts. In part 2, they say that each of a part's four attributes can have values 1 - 4000. The question is how many possible parts can be accepted. I'll need to send ranges through a workflow function to get the result. I'll make heavy use of recursion in both parts.

Code 2023 AOC: gitlab.com/0xdf/aoc2023
Challenge Link: adventofcode.com/2023/day/19

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

[00:00] Oops
[00:52] Part 1 description
[02:33] Input analysis
[04:10] Getting workflows and parts
[04:54] Parsing workflows
[09:20] Testing workflow parsing
[10:23] Looping over parts
[12:30] apply_workflows
[16:09] Solve part 1
[16:28] Part 2 description
[17:13] New setup working over ranges
[18:42] apply_workflow_ranges
[28:29] Solve part 2
[28:56] Summary

#adventofcode #python
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]Day 16: The Floor Will Be Laba [AOC2023 Python]Bridge Repair [Day 7 - Advent of Code 2024 - Python]
0xdf |

Day 19: Aplenty [AOC2023 Python]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER