Printing Department [AOC2025 Day 4] @0xdf
Printing Department [AOC2025 Day 4]  @0xdf
Uploaded December 2025 | Updated November 2026, 3 hours ago
Advent of Code 2025 Day 4 is the first grid challenge of the year. I'm given spaces in a warehouse that have pallets of paper on them. A forklift can only access a pallet to move it if there are less than three pallets in the eight spaces around the pallet. In part 1, I need to find how many are accessible. In part 2, I can iterate, removing all accessible, and then re-examining and removing ones that are newly accessible, until there are not left that can be moved. Claude nailed this one in less than a minute with a pretty clean solution.

Solutions Repo: gitlab.com/0xdf/aoc2025
VSCode Debug Setup: youtube.com/watch?v=cNhtk2Ob4B8
Claude: claude.ai

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

[00:00] Introduction
[00:59] Pulling / examining input
[01:27] Procesing grid into defaultdict
[03:26] count_neighbors function
[04:50] Counting accessible spaces
[05:22] Fixing error with looping over changing dict
[06:13] Fixing error with counting
[08:25] Solving part 1
[08:43] Part 2 introduction
[09:22] Generating next grid iteration
[10:21] Function to count grid
[11:06] Calculating change
[11:43] Fixing forgot to update grid
[12:00] Fixing missing check for paper
[14:00] Solving part 2
[14:25] Solving with Claude
[15:36] Analysis of Claude's solution
[17:03] Conclusion

#AdventOfCode #claude
Printing Department [AOC2025 Day 4]PowerShell Challenge [Sans Holiday Hack 2024]Scanning UDP with nmapReading (Almost) A Million QRCodes [Hackvent 2022 - Day 16]Day 1: Trebuchet?! [AOC2023 Python]Monkey Market [Day 22 - Advent of Code 2024 - Python]Unsafe Escape with Express JS / mysqljsMalicious Lnk and JavaScript AnalysisDay 24 - Air Duct Spelunking [Revival of Code 2023 - Advent of Code 2016]Garden Groups [Day 12 - Advent of Code 2024 - Python]Debofuscate JavaScript with webcrack [Meme Maker 3000 - Flare-On 2024]Day 3 - Squares With Three Sides [Revival of Code 2023 - Advent of Code 2016]
0xdf |

Printing Department [AOC2025 Day 4]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER