advent-of-code
My solutions for the Advent of Code (by JesperDramsch)
advent-2021
[Moved to: https://github.com/Crazytieguy/advent-of-code] (by Crazytieguy)
Our great sponsors
advent-of-code | advent-2021 | |
---|---|---|
10 | 19 | |
6 | 5 | |
- | - | |
8.5 | 6.8 | |
4 months ago | over 1 year ago | |
Jupyter Notebook | Rust | |
- | - |
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
Posts with mentions or reviews of advent-of-code.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-06.
- -βοΈ- 2023 Day 6 Solutions -βοΈ-
-
-π- 2022 Day 9 Solutions -π-
Code lives here and I scheduled a [blog post here](rope-bridge-solving-advent-of-code).
-
-π- 2021 Day 22 Solutions -π-
In the rest of the code I simply iterate through cubes and multiply the edges with the saved values.
-
-π- 2021 Day 16 Solutions -π-
Today was rough. Code is too long to post here. Github Basically using indexes and a bit of recursion for this.
-
-π- 2021 Day 13 Solutions -π-
It lives on Github and I made a visualization.
-
-π- 2021 Day 12 Solutions -π-
Python 3. Figured I'd learn some more networkx. Was useful for the "smol" attribute in the end and easily getting the neighbors. Full code is on Github.
-
-π- 2021 Day 10 Solutions -π-
The two scorer functions live on Github.
-
-π- 2021 Day 5 Solutions -π-
The full code with comments lives on Github. But here's the meat without comments for brevity:
-
If you're new, know that the example is your first input
And this is how simple it can be to build some relatively robust tests. All of this lives in a tests folder so pytest automatically finds it in a file called test_day05.py. You can see the file on Github.
-
-π- 2020 Day 22 Solutions -π-
Kept it fairly simple in Python. Runs in half a second for both parts together.
advent-2021
Posts with mentions or reviews of advent-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 -π-
- -π- 2021 Day 23 Solutions -π-
-
-π- 2021 Day 22 Solutions -π-
Rust https://github.com/Crazytieguy/advent-2021/blob/master/src/bin/day22/main.rs Imagining the geometry of this was very tricky for me. For a while I contemplated if calculating the intersection of each pair of cuboids would give me enough information to know how many cubes are on at the end, and finally decided that I would also have to calculate the intersections of those and so on, so I gave up. Instead I decided that my state will be a vector of cuboids that are garuanteed to be non overlapping, and on each command I would subtract the current cuboid from each of these non overlapping cuboids (leaving 1 to 6 cuboids depending on intersection), and finally either add in the current cuboid (for on command) or leave it out (for off).
- -π- 2021 Day 21 Solutions -π-
- -π- 2021 Day 20 Solutions -π-
- -π- 2021 Day 19 Solutions -π-
- -π- 2021 Day 18 Solutions -π-
- -π- 2021 Day 16 Solutions -π-
- -π- 2021 Day 15 Solutions -π-
- -π- 2021 Day 14 Solutions -π-
What are some alternatives?
When comparing advent-of-code and advent-2021 you can also consider the following projects:
aoc2020 - Advent of Code 2020
aoc2021 - Advent of Code 2021 - my answers
advent2022
advent-of-code-go - All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022
AdventofCode2022 - My Advent of Code 2022 solutions in Kotlin
aoc2021 - Advent of Code 2021 on my homemade 16-bit CPU SCAMP
AdventOfCode2022 - LΓΆsungen fΓΌr Advent of Code 2022 https://adventofcode.com/2022
deno_aoc - π Advent of code solutions written in TypeScript for Deno.
AdventOfCode
aoc - Advent of Code - mscha's Perl 6 solutions
AdventOfCode - Solutions to the Advent of Code 2022 puzzles.
AdventOfCode2021.jl - Advent of Code 2021 in Julia
advent-of-code vs aoc2020
advent-2021 vs aoc2021
advent-of-code vs advent2022
advent-2021 vs advent-of-code-go
advent-of-code vs AdventofCode2022
advent-2021 vs aoc2021
advent-of-code vs AdventOfCode2022
advent-2021 vs deno_aoc
advent-of-code vs AdventOfCode
advent-2021 vs aoc
advent-of-code vs AdventOfCode
advent-2021 vs AdventOfCode2021.jl