aoc2021
Advent of Code 2021 (by UnicycleBloke)
Advent_of_Code_2021
My solutions to Advent of Code 2021 (by neelakantankk)
aoc2021 | Advent_of_Code_2021 | |
---|---|---|
8 | 11 | |
4 | 0 | |
- | - | |
3.3 | 0.0 | |
5 months ago | over 2 years ago | |
C++ | Python | |
- | - |
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.
aoc2021
Posts with mentions or reviews of aoc2021.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-14.
-
I'm learning c++ at work the last few months, and I'm considering asking to do AoC during work - what prep could I do for AoC in c++?
The fiddliest part is processing the input into usable form. I ended up with a template which used regex to convert a file of similar lines into a vector of tuples. It's not amazing code, I'm sure, but it did the job: https://github.com/UnicycleBloke/aoc2021/blob/master/utils/utils.h, used for example here in the run() function: https://github.com/UnicycleBloke/aoc2021/blob/master/day13/day13.cpp. Share and enjoy. ;)
-
[DAY 6] C# solution with commentary
I'm not certain, but this seems similar to my solution: https://github.com/UnicycleBloke/aoc2021/blob/master/day06/day06.cpp. I rotate an array of counts for days, and add the count for Day 8 to that for Day 6. Speed depends on the machine, but both parts run in about a millisecond on mine.
-
Anyone using c++'s standard libraries for AOC?
My code isn't amazing or anything, but it is here: https://github.com/UnicycleBloke/aoc2021
- -🎄- 2021 Day 14 Solutions -🎄-
-
-🎄- 2021 Day 5 Solutions -🎄-
C++: https://github.com/UnicycleBloke/aoc2021/blob/master/day05/day05.cpp
- -🎄- 2021 Day 4 Solutions -🎄-
-
-🎄- 2021 Day 3 Solutions -🎄-
C++ https://github.com/UnicycleBloke/aoc2021/blob/master/day03/day03.cpp. I suspect I'm overdoing the template-y goodness, but it's a learning exercise. Made such a meal of Part 2...
-
-🎄- 2021 Day 2 Solutions -🎄-
Nice. I figured we'll be parsing lines a lot so have written a function to parse the input into a vector of tuples: https://github.com/UnicycleBloke/aoc2021/blob/master/day02/day02.cpp.
Advent_of_Code_2021
Posts with mentions or reviews of Advent_of_Code_2021.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-14.
-
-🎄- 2021 Day 15 Solutions -🎄-
Python solution. Part 1 runs in no time at all. Part 2 takes about 1.2 s which, I think, is because I am creating the entire 500x500 grid at the beginning. I suspect that I could speed it up considerably by only creating a grid in a direction when I get there, maybe create the next tile to the right and down when I get to a tile. A tile update function would probably not be too difficult as each cost would be an (x,y) multiple of the cost's base (x,y). I'm going to attempt to bring this to below 1s. :D
-
-🎄- 2021 Day 14 Solutions -🎄-
Python
-
-🎄- 2021 Day 13 Solutions -🎄-
My solution in Python. Part 1 was pretty easy to do with sets. For Part 2, I just printed to console and put in the letters. :D
-
-🎄- 2021 Day 11 Solutions -🎄-
Surprised at the pretty small input file size :D but pretty easy Python solution using dicts, lists, and sets. Python comprehensions just make life so much easier.
-
-🎄- 2021 Day 9 Solutions -🎄-
Finally managed to solve Part 02 in Python. I was stuck because I could not figure out a way to go through all the points around a low point till I got to a 9. Then yesterday I say u/skarlso's post about Red Blob games and the various pathing algorithms, and the breadth-first-search example just unblocked the whole solution for me. :)
-
-🎄- 2021 Day 6 Solutions -🎄-
Python solution that takes about a second for part 2. The logic is the same for both parts, just changed the number of days it runs for.
-
-🎄- 2021 Day 5 Solutions -🎄-
Bless Python's sets! Makes checking for membership such a breeze!
-
-🎄- 2021 Day 4 Solutions -🎄-
Python
-
-🎄- 2021 Day 3 Solutions -🎄-
Pretty easy with Python. Some list comprehension, some count, some join, some int and it's done. Could be more efficient, of course. 😁
-
-🎄- 2021 Day 2 Solutions -🎄-
Simple Python-based solution yet again.
What are some alternatives?
When comparing aoc2021 and Advent_of_Code_2021 you can also consider the following projects:
adventofcode - Advent of code solutions
Advent-of-code-2021-golang - Advent of code 2021 Go solutions
advent-of-code
adventofcode - My solutions to the Advent of Code challenges
AdventOfCode2021.jl - Advent of Code 2021 in Julia
aoc2021rust
adventofcode - Solutions for problems from AdventOfCode.com
advent_of_code - My solutions to advent of code puzzles
AoC - my personal repo for the advent of code yearly challenge
AOC2021
advent-of-code
adventofcode
aoc2021 vs adventofcode
Advent_of_Code_2021 vs Advent-of-code-2021-golang
aoc2021 vs advent-of-code
Advent_of_Code_2021 vs adventofcode
aoc2021 vs AdventOfCode2021.jl
Advent_of_Code_2021 vs aoc2021rust
aoc2021 vs adventofcode
Advent_of_Code_2021 vs advent_of_code
aoc2021 vs AoC
Advent_of_Code_2021 vs AOC2021
aoc2021 vs advent-of-code
Advent_of_Code_2021 vs adventofcode