advent-of-code-2021
advent of code 2021 solutions (by simorautiainen)
advent-of-code-2021 | adventofcode | |
---|---|---|
4 | 10 | |
0 | - | |
- | - | |
4.2 | - | |
over 2 years ago | - | |
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.
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-11.
-
-🎄- 2021 Day 12 Solutions -🎄-
Python solution. If you look at the input you might notice that there is not a single path from uppercase cave to uppercase cave, so with recursion there is no way code can get stuck. It also means that you don't need to keep track of the finished paths because there is no way to generate duplicates.
-
-🎄- 2021 Day 11 Solutions -🎄-
I did with recursion too, but to make a point flash it must have exactly value 10. So I just need to edit all numbers that have value over 9 to a zero at the end. Don't know if its any faster :D My Python solution using external library Numpy
-
-🎄- 2021 Day 6 Solutions -🎄-
Python 3 Got my solution running in less than 1ms using Counters
-
-🎄- 2021 Day 4 Solutions -🎄-
PYTHON. I did first version without Numpy but decided that its way too useful so I did some refactoring and below is my solution. It's a bit slow so not the most optimal.
adventofcode
Posts with mentions or reviews of adventofcode.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-10.
-
-🎄- 2021 Day 11 Solutions -🎄-
part1 and 2
-
-🎄- 2021 Day 10 Solutions -🎄-
code
-
-🎄- 2021 Day 9 Solutions -🎄-
part1 with window functions: https://explain.dalibo.com/plan/drW
-
-🎄- 2021 Day 8 Solutions -🎄-
And part2 is here. Executes in about 40ms on my machine.
-
Advent of Code 2021 using SQL (PostgreSQL-flavored)
Your repo comes up a lot in the reddit threads. Day 4/1 was particularly great!
When AOC 2021 is done I hope I will find the time to compile the different approaches for each day and compare them.
My current list of repos is this:
- https://gitlab.com/autra/adventofcode
-
-🎄- 2021 Day 6 Solutions -🎄-
https://gitlab.com/autra/adventofcode https://gitlab.com/feike/adventofcode https://github.com/dflss/advent-of-code-2021 https://github.com/qwesda/AOC2021-postgresql
-
-🎄- 2021 Day 4 Solutions -🎄-
Solutions are here: https://gitlab.com/autra/adventofcode/-/tree/master/year_2021/day4
-
-🎄- 2021 Day 3 Solutions -🎄-
part 1 (really easy in sql)
-
-🎄- 2021 Day 2 Solutions -🎄-
EDIT: full code (with loading script)
What are some alternatives?
When comparing advent-of-code-2021 and adventofcode you can also consider the following projects:
AoC - my personal repo for the advent of code yearly challenge
programming-challenges - My attempts at solving various programming challenges. Leetcode, codewars, adventofcode, etc