My solutions for Advent of Code.
Solutions are in:
- ⭐ I was able to write a straightforward solution without any problems
- ⭐⭐ I ran into a few hurdles or bugs, but it eventually came together pretty smoothly
- ⭐⭐⭐ I needed to do some research to figure out how to do this one, or it took me many abortive tries to figure out a working method
- ⭐⭐⭐⭐ I couldn't figure this one out without seeing someone else discuss how they solved it
- ⭐⭐⭐⭐⭐ I couldn't figure this one out without seeing someone else's code
♥️ Really annoying; the problem statement was confusing, or the solution didn't feel worth all the effort, or Part 2 was unsolvable without knowing obscure theory♥️ ♥️ It was okay, I guess (usually because there's more parsing than solving)♥️ ♥️ ♥️ An average Advent of Code problem; not bad but not fantastic either♥️ ♥️ ♥️ ♥️ Fun and interesting to work through; I spent more time than average on tweaking and improving the solution because I was enjoying myself♥️ ♥️ ♥️ ♥️ ♥️ My favorite one of the year; it's the kind of problem I enjoy solving and the solution was elegant or interesting
Name | Racket | Gleam | Difficulty | Enjoyment | Involves |
---|---|---|---|---|---|
Trebuchet?! | 1 | 1 | ⭐⭐⭐ | regex | |
Cube Conundrum | 2 | 2 | ⭐ | parsing, higher-order functions | |
Gear Ratios | 3 | 3 | ⭐⭐⭐ | arrays | |
Scratchcards | 4 | 4 | ⭐ | hashmaps | |
If You Give a Seed a Fertilizer | 5 | 5 | ⭐⭐ | sparse ranges | |
Wait For It | 6 | 6 | ⭐ | algebra, root-finding | |
Camel Cards | 7 | 7 | ⭐ | pattern matching | |
Haunted Wasteland | 8 | 8 | ⭐⭐ | state machines, number theory | |
Mirage Maintenance | 9 | 9 | ⭐ | numerical methods | |
Pipe Maze | 10 | 10 | ⭐⭐ | DFS, point-in-polygon problem | |
Cosmic Expansion | 11 | 11 | ⭐⭐ | parsing, sparse matrices | |
Hot Springs | 12 | 12 | ⭐⭐⭐⭐ | dynamic programming | |
Point of Incidence | 13 | 13 | ⭐⭐ | recursion | |
Parabolic Reflector Dish | 14 | 14 | ⭐⭐⭐ | simulation, recursion | |
Lens Library | 15 | 15 | ⭐ | hashmaps | |
The Floor Will Be Lava | 16 | 16 | ⭐⭐⭐ | simulation | |
Clumsy Crucible | 17 | ⛔ | ⭐⭐⭐⭐⭐ | pathfinding, BFS, Dijkstra | |
Lavaduct Lagoon | 18 | 18 | ⭐ | geometry | |
Aplenty | 19 | 19 | ⭐⭐⭐ | sparse ranges | |
Pulse Propagation | 20 | 20 | ⭐⭐⭐⭐ | simulation, number theory | |
Step Counter | 21 | ⛔ | ⭐⭐⭐⭐ | cellular automata | |
Sand Slabs | 22 | 22 | ⭐⭐⭐ | simulation, BFS | |
A Long Walk | 23 | 23 | ⭐⭐⭐ | DFS | |
Never Tell Me The Odds | 24-1 24-2 | ⛔ | ⭐⭐⭐⭐ | algebra, systems of equations, constraint solving | |
Snowverload | 25 | ⛔ | ⭐⭐⭐ | graphs, visualization |