| Random Link ¯\_(ツ)_/¯ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mar 9, 2026 | » | AoC 2024 Day 16: Reindeer Maze
1 min; updated Mar 9, 2026
Data ParsingThe input is an \(R \times C\) grid with Part OneThe reindeer start at | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Feb 28, 2026 | » | AoC 2024 Day 15: Warehouse Woes
6 min; updated Feb 28, 2026
Parsing
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Jan 3, 2026 | » | AoC 2024 Day 14: Restroom Redoubt
3 min; updated Jan 3, 2026
ParsingThe input is a list of all robots’ current positions \(p = (x, y)\) and velocities \(v = (dx, dy)\), one robot per line, e.g., \(x\) represents the number of tiles away from the left wall, and similarly for \(y\) from the top wall (when viewed from above). The top-left corner of the space is \((0, 0)\). The velocity is given in tiles per second. ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Dec 7, 2025 | » | AoC 2024 Day 13: Claw Contraption
7 min; updated Dec 7, 2025
ParsingThe input is a list of machine configurations, where buttons \(A\) and \(B\) move the claw some distance \(X\) and \(Y\), and the location of the prize is specified. Part OneIt costs \(3\) tokens to push the \(A\) button and \(1\) token to push the \(B\) button. What is the fewest tokens you would have to spend to win all possible prizes? ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Nov 30, 2025 | » | AoC 2024 Day 12: Garden Groups
8 min; updated Nov 30, 2025
ParsingEach garden plot grows only a single type of plant indicated by a single letter.
This \(4 \times 4\) arrangement includes garden plots growing 5 different
types of plants (labelled The area of a region is the number of garden plots the region
contains. The perimeter of a region is the number of sides of garden
plots in the region that do not touch another garden plot in the same region.
For example, the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Nov 29, 2025 | » | AoC 2024 Day 11: Plutonian Pebbles
4 min; updated Nov 29, 2025
ParsingThe stones are in a line, with each stone having a number engraved on it. The snippet below contains a subtle bug. The SetupEvery time you blink, the stones each simultaneously change based on the first applicable rule in this list: ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Aug 23, 2025 | » | AoC 2024 Day 08: Resonant Collinearity
4 min; updated Aug 23, 2025
ParsingEach antenna in the map is tuned to a frequency indicated by a single lowercase letter, uppercase letter, or digit. Two antennas with the same frequency create two collinear antinodes on either side where one of the antennas is twice as far away as the other, e.g.
Antinodes can occur at locations that contain other antennas. Part One requires computing locations of antinodes. Given antennas with frequency \(f\), I need to pairwise match them and compute their antinodes. Being able to group all such antennas is useful for this puzzle. ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Aug 23, 2025 | » | AoC 2024 Day 07: Bridge Repair
6 min; updated Aug 23, 2025
ParsingEach line represents a single equation, e.g., Part One needs to make a decision based on each line independently. Parsing each line into a data structure and yielding that should suffice. Part OneUsing only add and multiply, evaluated left-to-right (not according to math precedence rules), determine which equations could possibly be true. For example, \(292 = ((11 + 6) \times 16) + 20\). Of the equations that could possibly be true, what is the sum of their results? ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Aug 23, 2025 | » | AoC 2024 Day 06: Guard Gallivant
4 min; updated Aug 23, 2025
ParsingThe map shows the current position of the guard with
Part OneThe guard follows a strict patrol protocol which involves repeatedly following these steps: ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Aug 23, 2025 | » | AoC 2024 Day 05: Print Queue
3 min; updated Aug 23, 2025
ParsingThe notation The input contains page ordering rules (pairs of Part OneDetermine which updates are already in the correct order. What do you get if you add up the middle page number from those correctly-ordered updates? ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Aug 23, 2025 | » | AoC 2024 Day 04: Ceres Search
5 min; updated Aug 23, 2025
ProblemThis word search allows words to be horizontal, vertical, diagonal, written
backwards, or even overlapping other words. Here are a few ways The actual word search will be full of letters instead. For example: ParsingFor \(M \times N\) grids, C# has multi-dimensional arrays. These differ from jagged arrays, whose elements are arrays with possibly different sizes. In memory, multi-dimensional arrays are laid out as 1D arrays. When processing array data, cache locality impacts performance. If the computation needs to access multiple rows (e.g., image convolution, this problem), then multi-dimensional arrays offer an advantage. If processing row-by-row, then jagged arrays will also have cache locality. However, if the array is larger than 85Kb, then it ends in the large object heap, which is slower. ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Jun 25, 2025 | » | AoC 2024 Day 01: Historian Hysteria
4 min; updated Jun 25, 2025
Day 1 - Advent of Code 2024: Historian Hysteria.
Eric Wastl.
DataThere’s just one problem: by holding the two lists up side by side, it quickly becomes clear that the lists aren’t very similar. Maybe you can help The Historians reconcile their lists? For example: To parse the input: ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Jun 25, 2025 | » | Advent of Code 2024 - C#
(16 items)
LLM Instructions for Advent of Code Using C#; AoC 2024 Day 16: Reindeer Maze; AoC 2024 Day 15: Warehouse Woes; AoC 2024 Day 14: Restroom Redoubt; C# Performance Tools; AoC 2024 Day 13: Claw Contraption; AoC 2024 Day 12: Garden Groups; AoC 2024 Day 11: Plutonian Pebbles; AoC 2024 Day 04: Ceres Search; AoC 2024 Day 05: Print Queue; AoC 2024 Day 06: Guard Gallivant; AoC 2024 Day 07: Bridge Repair; AoC 2024 Day 08: Resonant Collinearity; AoC 2024 Day 03: Mull It Over; AoC 2024 Day 02: Red-Nosed Reports; AoC 2024 Day 01: Historian Hysteria; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Apr 12, 2022 | » | AoC 2021 Day 10: Syntax Scoring
2 min; updated Apr 12, 2022
Day 10 - Advent of Code 2021.
Eric Wastl.
Part IYou ask the submarine to determine the best route out of the deep-sea cave, but it only replies: The navigation subsystem is made of several lines containing chunks. There are one or more chunks on each line, and chunks contain zero or more other chunks. Adjacent chunks are not separated by any delimiter; if one chunk stops, the next chunk (if any) can immediately start. Every chunk must open and close with one of four legal pairs of matching characters: ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mar 16, 2022 | » | AoC 2021 Day 09: Smoke Basin
13 min; updated Mar 16, 2022
massiv; Fusion; Box vs. Unboxed; Connected Components; Data.Set; Monadic map | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mar 7, 2022 | » | AoC 2021 Day 08: Seven Segment Search
15 min; updated Mar 7, 2022
Day 8 - Advent of Code 2021.
Eric Wastl.
Part I DescriptionYou barely reach the safety of the cave when the whale smashes into the cave mouth, collapsing it. Sensors indicate another exit to this cave at a much greater depth, so you have no choice but to press on. As your submarine slowly makes its way through the cave system, you notice that the four-digit seven-segment displays in your submarine are malfunctioning; they must have been damaged during the escape. You’ll be in a lot of trouble without them, so you’d better figure out what’s wrong. ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mar 5, 2022 | » | AoC 2021 Day 07: The Treachery of Whales
7 min; updated Mar 5, 2022
Day 7 - Advent of Code 2021.
Eric Wastl.
Part I DescriptionA giant whale has decided that your submarine is its next meal, and it’s much faster than you are. There’s nowhere to run! Suddenly, a swarm of crabs (each in its own tiny submarine - it’s too deep for them otherwise) zooms in to rescue you! They seem to be preparing to blast a hole in the ocean floor; sensors indicate a massive underground cave system just beyond where they’re aiming! ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mar 1, 2022 | » | AoC 2021 Day 06: Lanternfish
12 min; updated Mar 1, 2022
Day 6 - Advent of Code 2021.
Eric Wastl.
Part I DescriptionThe sea floor is getting steeper. Maybe the sleigh keys got carried this way? A massive school of glowing lanternfish swims past. They must spawn quickly to reach such large numbers - maybe exponentially quickly? You should model their growth to be sure. ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Feb 25, 2022 | » | AoC 2021 Day 04: Giant Squid
6 min; updated Feb 25, 2022
Day 4 - Advent of Code 2021.
Eric Wastl.
Part OneYou’re already almost 1.5km (almost a mile) below the surface of the ocean, already so deep that you can’t see any sunlight. What you can see, however, is a giant squid that has attached itself to the outside of your submarine. ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Feb 23, 2022 | » | AoC 2021 Day 03: Binary Diagnostic
14 min; updated Feb 23, 2022
Day 3 - Advent of Code 2021.
Eric Wastl.
Problem DescriptionPart OneThe submarine has been making some odd creaking noises, so you ask it to produce a diagnostic report just in case. The diagnostic report (your puzzle input) consists of a list of binary numbers which, when decoded properly, can tell you many useful things about the conditions of the submarine. The first parameter to check is the power consumption. ... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Feb 19, 2022 | » | AoC 2021 Day 02: Dive!
12 min; updated Feb 19, 2022
Day 2 - Advent of Code 2021.
Eric Wastl.
Problem StatementPart OneNow, you need to figure out how to pilot this thing. It seems like the submarine can take a series of commands like
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Feb 18, 2022 | » | Advent of Code 2021 - Haskell
(16 items)
Learning Haskell via AoC 2021; AoC 2021 Day 01: Sonar Sweep; AoC 2021 Day 02: Dive!; AoC 2021 Day 03: Binary Diagnostic; AoC 2021 Day 04: Giant Squid; AoC 2021 Day 05: Hydrothermal Venture; AoC 2021 Day 06: Lanternfish; AoC 2021 Day 07: The Treachery of Whales; AoC 2021 Day 08: Seven Segment Search; AoC 2021 Day 09: Smoke Basin; AoC 2021 Day 10: Syntax Scoring; AoC 2021 Input Parser; AoC 2021 Main; AoC 2021 Solution Runner; AoC 2021 Test Code; AoC 2021 Parsing Arguments; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Feb 18, 2022 | » | AoC 2021 Day 01: Sonar Sweep
6 min; updated Feb 18, 2022
Day 1 - Advent of Code 2021: Sonar Sweep.
Eric Wastl.
Part OneAs the submarine drops below the surface of the ocean, it automatically performs a sonar sweep of the nearby sea floor. On a small screen, the sonar weep report (your puzzle input) appears: each line is a measurement of the sea floor depth as the sweep looks further and further away from the submarine. ... |
Can’t submarines move backwards? Why is there no
...backward X?