https://github.com/bg2b/aoc24
Advent of Code 2024
https://github.com/bg2b/aoc24
advent-of-code
Last synced: 2 months ago
JSON representation
Advent of Code 2024
- Host: GitHub
- URL: https://github.com/bg2b/aoc24
- Owner: bg2b
- License: mit
- Created: 2024-11-27T01:16:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-30T17:09:48.000Z (11 months ago)
- Last Synced: 2025-09-12T06:05:49.330Z (3 months ago)
- Topics: advent-of-code
- Language: C++
- Homepage:
- Size: 273 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- really-awesome-advent-of-code - bg2b/aoc24 - commit/bg2b/aoc24/main) (🎄 2024 AoC Solutions / Solutions)
README
# Advent of Code 2024
Info and problems are available at https://adventofcode.com/2024
## Overview
Each day's solutions are in a subdirectory, `01`, `02`, etc.
Solutions are C++. Compile with:
```
g++ -std=c++20 -Wall -g -o doit doit.cc
```
There are occasional problems that need something special; in that
case a comment at the start of the file will say what to do.
Example inputs, if any, are called `input1`, `input2`, etc.
The real input, as downloaded from the AOC website, would be called
`input`, though my inputs are not included in the repository.
Input is on stdin, output is printed to stdout. Run part 1 as `./doit
1 < input` and part 2 as `./doit 2 < input`
Sometimes I might go back and revisit a problem in a different
(usually more efficient) way. Alternatives will be other `.cc` files
starting with `doit`.
## Recommended problems
Here's my list of recommended problems for the year, along
with direct links. Recommendations are based on a combination of
factors: perhaps the problem admits an unusual and clever solution, or
perhaps it would allow an interesting visualization, or perhaps the
problem description itself was cute. In whatever way, I found the
problem unusually fun. Each of these problems is either ⭐
(recommended) or ⭐⭐ (highly recommended).
+ [Day 6: Guard Gallivant](https://adventofcode.com/2024/day/6) ⭐
Brute force works fine, but part 2 needs a little cleverness to be
really fast
+ [Day 7: Bridge Repair](https://adventofcode.com/2024/day/7) ⭐
+ [Day 9: Disk Fragmenter](https://adventofcode.com/2024/day/9) ⭐
+ [Day 11: Plutonian Pebbles](https://adventofcode.com/2024/day/11) ⭐
+ [Day 12: Garden Groups](https://adventofcode.com/2024/day/12) ⭐
There's been a nice group of interesting days
+ [Day 14: Restroom Redoubt](https://adventofcode.com/2024/day/14) ⭐⭐
Wonderful part 2, though definitely a bit open-ended
+ [Day 17: Chronospatial Computer](https://adventofcode.com/2024/day/17) ⭐
Shades of Intcode
+ [Day 20: Race Condition](https://adventofcode.com/2024/day/20) ⭐⭐
+ [Day 21: Keypad Conundrum](https://adventofcode.com/2024/day/21) A
spectacularly mind-bending problem, with an elegant solution! ⭐⭐
Overall I rate this year as somewhere between ⭐ and ⭐⭐. There was
a very nice stretch of puzzles in the center, but I feel like the
final few days were a slight letdown. Still, I enjoyed the look back
at all the previous contests and eagerly await next year!
## Other years
These are my AoC repositories for previous years (all C++, mostly the
same format as this year). Years that I thought were more fun are
rated with ⭐ or ⭐⭐.
+ [2023](https://github.com/bg2b/aoc23) ⭐⭐
+ [2022](https://github.com/bg2b/aoc22) ⭐⭐
+ [2021](https://github.com/bg2b/aoc21) ⭐ You always remember your
first... \
(This was the first year I participated live, and I did the solutions
as two separate parts)
+ [2020](https://github.com/bg2b/aoc20)
+ [2019](https://github.com/bg2b/aoc19) Intcode FTW ⭐⭐
+ [2018](https://github.com/bg2b/aoc18) ⭐⭐
+ [2017](https://github.com/bg2b/aoc17) ⭐ for the advent calendar
animation alone
+ [2016](https://github.com/bg2b/aoc16) ⭐
+ [2015](https://github.com/bg2b/aoc15)
