πŸ€Zerve chosen as NCAA's Agentic Data Platform for 2026 HackathonΒ·πŸ—ΊοΈZerve exhibiting at Eagle Alpha conference, LondonΒ·πŸ“ˆWe're hiring β€” awesome new roles just gone live!
Back

Advent of Code 2025 Day 4

mcclintock44133
December 5, 2025

About

πŸŽ„ Santa's Warehouse Forklift Challenge - Day 4 πŸŽ…
Join the Elves in optimizing Santa's warehouse operations! This canvas solves Advent of Code 2025 Day 4, where you'll help forklifts navigate piles of paper rolls to access gift-wrapping supplies.

The Challenge: Paper rolls (@) are stacked on a warehouse grid, but forklifts can only access rolls with fewer than 4 adjacent neighbors. In Part 1, we calculate which rolls are initially accessible. In Part 2, we simulate the iterative removal process - as rolls are taken, previously buried rolls become accessible!

What You'll Learn:


✨ Grid-based adjacency algorithms

πŸ”„ Iterative state transformation patterns

πŸ“Š Efficient data structure manipulation

🎁 Problem decomposition with modular functions


The Solutions:


Part 1: Identifies initially accessible paper rolls

Part 2: Calculates total removable rolls through iterative processing


Perfect for learning algorithm design with a festive twist! 🎊

Related Topics

Decision-grade data work

Explore, analyze and deploy your first project in minutes