AdventOfCode2021
Solutions to all 25 AoC 2021 problems in Rust :crab: Less than 100 lines per day and under 1 second total execution time! :christmas_tree: (by AxlLind)
Advent_of_Code_2021
My solutions to Advent of Code 2021 (by neelakantankk)
AdventOfCode2021 | Advent_of_Code_2021 | |
---|---|---|
49 | 11 | |
61 | 0 | |
- | - | |
2.6 | 0.0 | |
4 months ago | over 2 years ago | |
Rust | Python | |
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.
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 2022-12-29.
- [All years, all dates] Me after finishing all Advent of Code problems this year (my first year of AoC)
-
How to organize Rust code for Advent of Code puzzles?
I found this repository which solves the problem by having a src/main.rs file which basically calls cargo run --release {day} and parses the output to extract the time each day took, but I don't find this very satisfactory. I'd prefer to have everything compiled into the same executable, without having to run external commands.
-
Advent of Code: A suggestion for more advanced learners
You can always check out the problems from previous years.
-
Can I learn python in a month?
https://adventofcode.com/2021 for practice.
- C++ knowledge
- Prawda o Pracy
- O que Γ© o Advent Of Code?
- Knobelaufgaben fΓΌr C#
-
Practice exercises in c++
Here is 2021: https://adventofcode.com/2021
- Give Me a Program to Code
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 AdventOfCode2021 and Advent_of_Code_2021 you can also consider the following projects:
100-days-of-code - Fork this template for the 100 days journal - to keep yourself accountable (multiple languages available)
Advent-of-code-2021-golang - Advent of code 2021 Go solutions
adventofcode - My solutions to the Advent of Code challenges
Advent-of-code - My solutions of adventofcode.com
aoc2021rust
AoC - my personal repo for the advent of code yearly challenge
advent_of_code - My solutions to advent of code puzzles
advent-of-code - Advent Of Code Solutions
AOC2021
aoc2021 - My solutions to Advent of Code 2021.
adventofcode
AdventOfCode2021 vs 100-days-of-code
Advent_of_Code_2021 vs Advent-of-code-2021-golang
AdventOfCode2021 vs adventofcode
Advent_of_Code_2021 vs adventofcode
AdventOfCode2021 vs Advent-of-code
Advent_of_Code_2021 vs aoc2021rust
AdventOfCode2021 vs AoC
Advent_of_Code_2021 vs advent_of_code
AdventOfCode2021 vs advent-of-code
Advent_of_Code_2021 vs AOC2021
AdventOfCode2021 vs aoc2021
Advent_of_Code_2021 vs adventofcode