Advent-of-Code-2021
Made it through all 25 days of Advent of Code for the second time! (by Leftfish)
AdventOfCode2021
My solutions to https://adventofcode.com/2021 (by willkill07)
Our great sponsors
Advent-of-Code-2021 | AdventOfCode2021 | |
---|---|---|
14 | 19 | |
2 | 11 | |
- | - | |
4.3 | 4.2 | |
3 months ago | over 2 years ago | |
Python | C++ | |
- | Apache License 2.0 |
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 2022-12-06.
-
-🎄- 2022 Day 7 Solutions -🎄-
I totally recommend trying - it's going to be a lot of fun and you'll understand the structure better. I'm not a pro and I never studied CS - that's just my experience from last year (day 18).
-
[2021] What did you learn or take away from AoC 2021?
I keep a diary of what I learned, revised or improved at in my repo.
-
-🎄- 2021 Day 23 Solutions -🎄-
Python - needs over 45 seconds but WORKS, which is good enough for me after a couple of days, especially given the fact that I can spend at most 1-2 hours a day solving this... The ugliest part are probably the hard-coded distances from rooms to corridors and vice versa, but what the heck, it works.
-
-🎄- 2021 Day 18 Solutions -🎄-
As a complete hobbyist, I was glad I figured out this had something to do with binary trees. It took about an hour to design everything on paper. Then I started to code it...and then debug...and four hours later I finally arrived at this solution.
-
-🎄- 2021 Day 15 Solutions -🎄-
Python
-
-🎄- 2021 Day 14 Solutions -🎄-
I'm not sure what kind of brainfog descended on me this morning. After part 1 I instantly knew I should just count the pairs and update their numbers but somehow couldn't figure out how to do it. It took me almost an hour before it dawned on me that...wait for it...a pair splits into two pairs. After that and some off-by-one debugging I came up with this solution. Defaultdict for the win.
-
-🎄- 2021 Day 13 Solutions -🎄-
Python - two alternative solutions (lines 25-65 and 68-106, not including the parser)
-
-🎄- 2021 Day 10 Solutions -🎄-
Anyway, here's my stack-based Python solution. It could be made way shorter because there's actually no need to store data separately about valid lines (valid == not corrupt and empty stack), but I thought the verbose approach makes the solution a bit more understandable.
-
-🎄- 2021 Day 9 Solutions -🎄-
Figuring out that part 2 was essentially the 'find islands in a 2d matrix' problem was the easy thing. Remembering how to implement a DFS or BFS was another story. So I ended up implementing both for learning purposes (Python).
-
-🎄- 2021 Day 8 Solutions -🎄-
Here's my approach (I have no CS background) in Python. In short:
AdventOfCode2021
Posts with mentions or reviews of AdventOfCode2021.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-21.
- -🎄- 2021 Day 22 Solutions -🎄-
- -🎄- 2021 Day 21 Solutions -🎄-
- -🎄- 2021 Day 20 Solutions -🎄-
- -🎄- 2021 Day 18 Solutions -🎄-
- -🎄- 2021 Day 17 Solutions -🎄-
- -🎄- 2021 Day 16 Solutions -🎄-
-
-🎄- 2021 Day 15 Solutions -🎄-
https://github.com/willkill07/AdventOfCode2021/blob/main/days/Day15.cpp https://github.com/willkill07/AdventOfCode2021/blob/main/days/Day15.hpp
- -🎄- 2021 Day 14 Solutions -🎄-
- -🎄- 2021 Day 13 Solutions -🎄-
- -🎄- 2021 Day 12 Solutions -🎄-
What are some alternatives?
When comparing Advent-of-Code-2021 and AdventOfCode2021 you can also consider the following projects:
adventofcode - Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala
adventofcode - https://adventofcode.com/2021/
roast - 🦋 Raku test suite
Advent-of-code-2021 - [Moved to: https://github.com/Toanuvo/Advent-of-code]
deno_aoc - 🎄 Advent of code solutions written in TypeScript for Deno.
adventofcode - Answers to Advent of Code
Advent_of_Code_in_Pascal - My solutions to the Advent of Code, in Free Pascal
advent-of-code-go - All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022
advent-of-code
adventofcode - Advent of Code challenge solutions
AdventOfCode - Advent of Code Solutions
aoc - Advent of Code Solutions