Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kwinkunks/aoc24
π Advent of Code 2024 π
https://github.com/kwinkunks/aoc24
advent-of-code advent-of-code-2024 christmas puzzle-solving
Last synced: about 1 month ago
JSON representation
π Advent of Code 2024 π
- Host: GitHub
- URL: https://github.com/kwinkunks/aoc24
- Owner: kwinkunks
- License: mit
- Created: 2024-12-01T05:51:50.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-01T06:41:17.000Z (about 1 month ago)
- Last Synced: 2024-12-01T07:28:14.255Z (about 1 month ago)
- Topics: advent-of-code, advent-of-code-2024, christmas, puzzle-solving
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aoc24
No frills Python again this year.
> [!CAUTION]
> Descriptions contain spoilers!## Week 1
- **Day 1: Historian Hysteria** βΒ The 'hard to parse' style of 2023 is back, presumably to keep the chatbots away. Too bad because ChatGPT solves both parts correctly with no instruction (see [chatgpt/day01.py](./chatgpt/day01.py)). Much easier than last year's Day 1, this felt more like earlier years. SLOC: 19.
- **Day 2: Red-Nosed Reports** βΒ Fun little problem with the derivative of an integer series. Part 2 can probably be done in a clever way (something something second derivative) but brute force suffices. SLOC: 16.
- **Day 3: Mull It Over** β Regex to the rescue! Sort of: Part 1 was very fast, tried to write a cunning pattern for Part 2, went as expected, ended up parsing it myself, turned out to be much easier.Β SLOC: 22.
- **Day 4: Ceres Search** β Fun word-search puzzle... or it would have been fun if I had found my bug a bit sooner: I needed to reverse the coordinates for 'backwards' XMAS's. Otherwise fairly happy with the algorithm, although it needed a structural change for Part 2 (so I couldn't easily it into a function).Β SLOC: 37.
- **Day 5: Print Queue** β Part 1 seemed ominously easy but of course was not really required at all for Part 2, which tries to tempt you into the sort. I wrote down how to do that, then realized what could be done to avoid it. (When spidey senses tingle while reading things like "For some reason, the elves want the midpoint..." you should pay attention!). SLOC: 38.When counting SLOC, I don't include blank or comment lines.