★Advent of Code 202225 days solved.Source ↗

Difficulty

1–25
3–47
5–68
7–82
9–103

A histogram of difficulty ratings for each day.

Languages click to filter

Some days were solved twice in different languages. Day 12 is the only day without a Python solution (Kotlin solution instead).

Code size vs. difficulty click a point

difficultylines of code

Runtime vs. difficulty click a point

difficultyruntime (log scale)

The two days that dominate the suite are also the two hardest, but size of input explains nothing. All 25 puzzles together read only 278 KB, and the slowest day reads only 3.4 KB. Runtime here is a property of the search space, not the file.

Techniques click to filter

All 25 days

Open any day in the explorer →
Day 11/10

Calorie Counting

“My first Haskell program :)”

Haskell · Python53 ln
Day 22/10

Rock Paper Scissors

“Changed match to modulo operator.”

Python31 ln
Day 32/10

Rucksack Reorganization

“Completed day 3 puzzle.”

Python27 ln
Day 41/10

Camp Cleanup

“take each line "19-24,45-67" -> [19, 24, 45, 67]”

Python25 ln
Day 53/10

Supply Stacks

“we'll add the crates to the stacks in FILO order”

Python60 ln
Day 61/10

Tuning Trouble

“recursion is no bueno for this (problem gets bigger)”

Haskell · Python31 ln
Day 74/10

No Space Left On Device

“higher-order function <==> function that takes functions as input”

Python90 ln
Day 83/10

Treetop Tree House

“NOTE: Was trying to abuse higher-order functions. Obscure code below.”

Python47 ln
Day 95/10

Rope Bridge

“always put the tail on the same col or row as head if it moves (handles diagonals)”

Python98 ln
Day 103/10

Cathode-Ray Tube

“Saving progress.”

Python39 ln
Day 116/10

Monkey in the Middle

“least common multiple (LCM) of prime numbers (like we have) is just their product!”

Python70 ln
Day 125/10

Hill Climbing Algorithm

“clever solution: You can just run BFS from the destination and have it terminate when it reache…”

Kotlin85 ln
Day 135/10

Distress Signal

“Completed day 13.”

Python130 ln
Day 145/10

Regolith Reservoir

“Completed day 14.”

Python102 ln
Day 156/10

Beacon Exclusion Zone

“If a row intersects a circle (defined by the sensor and beacon pair), then there will be two x …”

Python82 ln
Day 169/10

Proboscidea Volcanium

“No!! Greedy doesn't work. What about top N candidates?”

Python258 ln✎ notes
Day 178/10

Pyroclastic Flow

“LCM doesn't work obstensibly. Leaving notes for later.”

Python157 ln
Day 184/10

Boiling Boulders

“bfs "expands" the outside air around the lava blob”

Python47 ln
Day 1910/10

Not Enough Minerals

“I needed A LOT of hints and references from the Advent of Code Reddit threads. I would not have…”

Python290 ln
Day 207/10

Grove Positioning System

“I still do not intuitively understand "moving the number forward/backward." P.S. See git histor…”

Python63 ln✎ notes
Day 214/10

Monkey Math

“we build an expression like below and solve it with a library”

Python94 ln
Day 229/10

Monkey Map

“Digressing, will come back with visualization.”

Python254 ln✎ notes
Day 235/10

Unstable Diffusion

“Completed day 23.”

Python88 ln
Day 246/10

Blizzard Basin

“Massive speedup by caching blizzard movements :D”

Python114 ln
Day 254/10

Full of Hot Air

“Still trying to find pattern...”

Python71 ln