advent_of_code_2021
Golang solutions to advent of code 2021 (by Stefansfrank)
Advent_of_Code2021
Solutions to Advent of COde 2021 (by cettt)
advent_of_code_2021 | Advent_of_Code2021 | |
---|---|---|
8 | 12 | |
2 | 1 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | over 2 years ago | |
Go | R | |
- | - |
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-23.
-
-🎄- 2021 Day 24 Solutions -🎄-
The solution is manual and well described here. I wrote an AOI simulator and some analysis code in this Go program analyzing the structure of the input and showing some sample simulations. The most interesting output is right at the beginning if you run it where it shows the (very few) differences that each digit's treatment shows - there is no way I would have found the manual solution without the info from that program.
-
-🎄- 2021 Day 22 Solutions -🎄-
I think my part 2 is one of the simplest solution I have seen so far and still runs decently fast (200 ms on my MB Pro) - even though there are many much faster on here.
-
2021 Day 21
My solution (Go) for part 2 does not use any cache (or Dynamic Programming - I am not trained in CS) and runs in 10 ms on a MacBook Pro and I doubt a cache would speed that up significantly.
-
-🎄- 2021 Day 21 Solutions -🎄-
Part1 was so simple that it's not worth talking much about it. My solution to Part2 is:
-
-🎄- 2021 Day 19 Solutions -🎄-
This solution solves the puzzle and is being well structured and readable. However, I gave up on my goal to make it fast - I had spend enough time on this that I just wanted to spend time on different things than code (heresy - I know). My only solution slower than a second this year so far (it's uh 35 sec on my MB pro)!
-
-🎄- 2021 Day 18 Solutions -🎄-
I am pretty satisfied with my solution to this problem even though there is some optimization potential left on the table - it solves the puzzle in 500 ms on my MB pro.
-
Speed observation in Go(lang)
Here is my final (faster) solution and the one with maps (I avoided mentioning the concrete algorithms in the post in order to avoid spoilers but it's in the comments there)
-
-🎄- 2021 Day 8 Solutions -🎄-
My code is NOT optimized for brevity but for a balance of execution speed and readability. As this is not a brute force solution, speed does not really matter - otherwise the manual statements mentioned in the beginning are most likely faster than my fingerprint comparison. It runs on my MacBook in 1.5 ms if I suppress the repeated text output that is in the Github version (3 ms with all the text output).
Advent_of_Code2021
Posts with mentions or reviews of Advent_of_Code2021.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-23.
-
-🎄- 2021 Day 24 Solutions -🎄-
Then I wrote a small algorithm which finds the minimum and maximum values: no brute force needed- Full code with extra explanation on github.
-
-🎄- 2021 Day 23 Solutions -🎄-
My code is super slow: takes about 15 minutes for part 2. There is much too improve: will take a good look at this after the 25th.
-
-🎄- 2021 Day 22 Solutions -🎄-
My code is not yet as efficient as it could be: i takes about 4-5 seconds for both parts.
-
-🎄- 2021 Day 21 Solutions -🎄-
Today was my cheatday as I used the tidyverse library :) github
-
-🎄- 2021 Day 20 Solutions -🎄-
Today was quite easy again. The only challenging part in my input was that light pixels surrounded by only light pixels turn dark (and vice versa). github
-
-🎄- 2021 Day 19 Solutions -🎄-
For a while I didnt think I was going to make it :) But here I am :) github.
-
-🎄- 2021 Day 17 Solutions -🎄-
I first computed bounds and checked within a certain region of velocities. Compared with yesterday this was a piece of cake. I guess for must inputs the solution to part1 is simply y*(y+1)/2 where y is the absolute value of the lower bond - 1. github
-
-🎄- 2021 Day 16 Solutions -🎄-
Well save to say, this was my least favorite puzzle since 2018: and I still had a lot of fun :) I used two global variables: one keeping track of the current index and adding up the version numbers. I am praying that there won't be a follow up on this :D github
-
-🎄- 2021 Day 15 Solutions -🎄-
The full code is on github
-
-🎄- 2021 Day 14 Solutions -🎄-
cleaned up my code a little. Both parts run in 40ms. Full code with comments is on github
What are some alternatives?
When comparing advent_of_code_2021 and Advent_of_Code2021 you can also consider the following projects:
advent-of-code - Solutions, scripting, and templates for adventofcode.com
adventofcode - My solutions for Advent of Code
aoc-2021-cpp - Advent of Code 2021 in C++
advent-of-code - Advent of Code
aoc21
adventOfCode - Advent of Code solutions in a number of different languages
deno_aoc - 🎄 Advent of code solutions written in TypeScript for Deno.
AdventOfCode - My solutions for Advent of Code
advent-2021 - [Moved to: https://github.com/Crazytieguy/advent-of-code]
advent2021
aoc2021 - Advent of Code 2021, this time in Go
AoC - my personal repo for the advent of code yearly challenge
advent_of_code_2021 vs advent-of-code
Advent_of_Code2021 vs adventofcode
advent_of_code_2021 vs aoc-2021-cpp
Advent_of_Code2021 vs advent-of-code
advent_of_code_2021 vs aoc21
Advent_of_Code2021 vs adventOfCode
advent_of_code_2021 vs deno_aoc
Advent_of_Code2021 vs AdventOfCode
advent_of_code_2021 vs advent-2021
Advent_of_Code2021 vs advent2021
advent_of_code_2021 vs aoc2021
Advent_of_Code2021 vs AoC