aoc2021
solutions for advent of code 2021 (by tumdum)
advent-2021
[Moved to: https://github.com/Crazytieguy/advent-of-code] (by Crazytieguy)
aoc2021 | advent-2021 | |
---|---|---|
7 | 19 | |
4 | 5 | |
- | - | |
0.0 | 6.8 | |
over 2 years ago | over 1 year ago | |
Rust | Rust | |
GNU Affero General Public License v3.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.
aoc2021
Posts with mentions or reviews of aoc2021.
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 -๐-
my rust solution:
-
-๐- 2021 Day 23 Solutions -๐-
my rust solution - runs in ~650ms. All it does is explore all possible move sequences that obey game rules. Ordered by increasing total cost.
-
-๐- 2021 Day 21 Solutions -๐-
Thanks! In the meantime, I was able to slash the runtime in half by using a faster hash (fxhash) for the cache.
-
[2021] My aim is for all of this years solutions to be sub 1s in total. So far so good.
Same here $ cargo run --release -- --skip-output Finished release [optimized + debuginfo] target(s) in 0.02s Running target/release/aoc21 --skip-output Day 01 took 10.008ยตs to compute (with i/o: 146.55ยตs) Day 02 took 9.355ยตs to compute (with i/o: 87.184ยตs) Day 03 took 82.134ยตs to compute (with i/o: 155.095ยตs) Day 04 took 52.834ยตs to compute (with i/o: 240.457ยตs) Day 05 took 673.742ยตs to compute (with i/o: 776.801ยตs) Day 06 took 1.306ยตs to compute (with i/o: 7.122ยตs) Day 07 took 33.248ยตs to compute (with i/o: 55.737ยตs) Day 08 took 984.71ยตs to compute (with i/o: 1.00838ms) Day 09 took 883.739ยตs to compute (with i/o: 922.913ยตs) Day 10 took 19.062ยตs to compute (with i/o: 126.791ยตs) Day 11 took 398.191ยตs to compute (with i/o: 400.35ยตs)
-
-๐- 2021 Day 10 Solutions -๐-
rust
-
-๐- 2021 Day 9 Solutions -๐-
my rust day9:
-
-๐- 2021 Day 5 Solutions -๐-
my rust solution for day5:
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 aoc2021 and advent-2021 you can also consider the following projects:
adventofcode - Advent of code solutions
aoc2021 - Advent of Code 2021 - my answers
AdventOfCode2021.jl - Advent of Code 2021 in Julia
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 - Advent of Code puzzles
aoc2021 - Advent of Code 2021 on my homemade 16-bit CPU SCAMP
deno_aoc - ๐ Advent of code solutions written in TypeScript for Deno.
aoc - Advent of Code - mscha's Perl 6 solutions
advent-of-code
adventofcode - Solutions for problems from AdventOfCode.com
aoc2021 vs adventofcode
advent-2021 vs aoc2021
aoc2021 vs AdventOfCode2021.jl
advent-2021 vs advent-of-code-go
aoc2021 vs advent-of-code
advent-2021 vs aoc2021
aoc2021 vs deno_aoc
advent-2021 vs deno_aoc
advent-2021 vs aoc
advent-2021 vs AdventOfCode2021.jl
advent-2021 vs advent-of-code
advent-2021 vs adventofcode