Advent-of-Code-2021
Made it through all 25 days of Advent of Code for the second time! (by Leftfish)
deno_aoc
π Advent of code solutions written in TypeScript for Deno. (by N8Brooks)
Our great sponsors
Advent-of-Code-2021 | deno_aoc | |
---|---|---|
14 | 21 | |
2 | 5 | |
- | - | |
4.3 | 0.0 | |
3 months ago | over 1 year ago | |
Python | TypeScript | |
- | MIT License |
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:
deno_aoc
Posts with mentions or reviews of deno_aoc.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-24.
- -π- 2021 Day 25 Solutions -π-
- -π- 2021 Day 24 Solutions -π-
- -π- 2021 Day 23 Solutions -π-
-
-π- 2021 Day 22 Solutions -π-
Hereβs pretty much the same thing translated to TypeScript: https://github.com/N8Brooks/deno_aoc/blob/main/year_2021/day_22.ts
- -π- 2021 Day 21 Solutions -π-
- -π- 2021 Day 20 Solutions -π-
- -π- 2021 Day 19 Solutions -π-
- -π- 2021 Day 18 Solutions -π-
- -π- 2021 Day 17 Solutions -π-
- -π- 2021 Day 16 Solutions -π-
What are some alternatives?
When comparing Advent-of-Code-2021 and deno_aoc 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
advent-2021 - [Moved to: https://github.com/Crazytieguy/advent-of-code]
AdventOfCode2021 - My solutions to https://adventofcode.com/2021
adventofcode - Advent of Code challenge solutions
advent-of-code-go - All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022
AdventOfCode2021 - Advent of code 2021
adventofcode - Solutions for problems from AdventOfCode.com
aoc - Advent of Code Solutions
Advent-of-Code - Advent of Code
aoc2021 - Advent of Code 2021 - my answers
roast - π¦ Raku test suite
AdventOfCode2021