advent-of-code
My Advent of Code submissions (by DecemberDream)
advent_of_code
Solutions to programming puzzles on Advent of Code (by Praful)
advent-of-code | advent_of_code | |
---|---|---|
10 | 19 | |
1 | 5 | |
- | - | |
4.6 | 8.0 | |
almost 2 years ago | about 1 month ago | |
Python | Python | |
- | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
advent-of-code
Posts with mentions or reviews of advent-of-code.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-19.
-
-🎄- 2021 Day 20 Solutions -🎄-
Python day 20, code for part 1 also worked for part 2 without any changes.
-
-🎄- 2021 Day 17 Solutions -🎄-
Python day 17
-
-🎄- 2021 Day 16 Solutions -🎄-
Python day 16. In part 1 I apparently do the parsing from hex to binary wrong, however, it works. This gave me problems in part 2 so I reworked that (and the rest of the code).
-
-🎄- 2021 Day 15 Solutions -🎄-
Python day 15 where I did part 1 with a cumulative sum. Doesn't work if the path has to go up/left.
-
[2021 Day 14] Welp, apparently I didn't learn my lesson after the lanternfish
For day 11 I used convolution btw. Check it out here if you're interested!
-
-🎄- 2021 Day 14 Solutions -🎄-
Python day 14 where part 2 is a bit messy but it seems to be very efficient.
-
[2021] My aim is for all of this years solutions to be sub 1s in total. So far so good.
I have no idea how I would benchmark everything without going into each file and benchmarking them individually. This is my repo. I have a folder in the root folder (where the link takes you) and I wanted to add a `benchmark.py` into the `2021` folder. But when I execute the files, I get a `FileNotFoundError` error.
-
-🎄- 2021 Day 11 Solutions -🎄-
Python day 11 using convolution
-
-🎄- 2021 Day 2 Solutions -🎄-
Python day 2
advent_of_code
Posts with mentions or reviews of advent_of_code.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-08.
-
-❄️- 2023 Day 9 Solutions -❄️-
Here's the relevant extract from my (recursive) solution. Full code on GitHub.
-
-❄️- 2023 Day 8 Solutions -❄️-
Like others, I used lcm. Here's an extract of the solution, omitting parsing and main(). Full solution on GitHub.
-
-🎄- 2022 Day 14 Solutions -🎄-
Solutions to parts 1 and 2 nearly identical and pretty much worked first time. Nothing clever here. This was far simpler than I thought it would be. I probably spent most time trying to think of a mathematical way of getting all points between p1 and p2. In the end, I just constructed two ranges. Full code here.
-
-🎄- 2022 Day 10 Solutions -🎄-
Full code on github.
-
-🎄- 2022 Day 9 Solutions -🎄-
The core of my solution below using numpy (because I'm learning it!). See github for full code.
-
-🎄- 2022 Day 8 Solutions -🎄-
Python 3 solution using numpy. I got held up because I assume (but know better) that numpy arrays are [x,y] instead of [row, col], which is [y,x].
-
-🎄- 2021 Day 14 Solutions -🎄-
Below is the new solution, which works for part 1 and 2. The full code is on GitHub.
-
-🎄- 2021 Day 11 Solutions -🎄-
These are the key functions. The whole code is on GitHub
-
-🎄- 2021 Day 9 Solutions -🎄-
Part 2 (extract shown below) was a matter of starting with the low points found in part 1 then recursively looking around for relevant points. Full code on GitHub
-
-🎄- 2021 Day 8 Solutions -🎄-
Code is on GitHub.
What are some alternatives?
When comparing advent-of-code and advent_of_code you can also consider the following projects:
AdventOfCode2021
advent-of-code
advent-of-code - Advent of Code puzzles
AdventOfCode - Solutions to every single AoC problem (2015-2024). Mostly in Rust
advent-of-code
advent-of-code-kotlin - Advent of code 2021 - Kotlin