aoc2021
solutions for advent of code 2021 (by tumdum)
advent-of-code-2021
Advent of Code 2021 Java 17 (by zebalu)
aoc2021 | advent-of-code-2021 | |
---|---|---|
7 | 12 | |
4 | 0 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | about 2 years ago | |
Rust | Java | |
GNU Affero General Public License v3.0 | 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.
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-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-24.
-
-๐- 2021 Day 25 Solutions -๐-
Java (nothing special, simple implementation of the rules, I have only posted to fit for the rules here)
-
-๐- 2021 Day 16 Solutions -๐-
Java, the code is still a mess, but if you need some tips, it might help.
-
-๐- 2021 Day 15 Solutions -๐-
Java Using Dijsktra's alogorithm to find the cheapest path.
-
-๐- 2021 Day 11 Solutions -๐-
Java
-
-๐- 2021 Day 10 Solutions -๐-
Java if you are interested.
-
-๐- 2021 Day 9 Solutions -๐-
If you are using custom Coord objects, you could consider going in and making a map of coord to value. Saves a bunch of boundaries checks, as you can see in zebalu's solution (another comment in thread) https://github.com/zebalu/advent-of-code-2021/blob/master/src/main/java/io/github/zebalu/aoc2021/Day09.java
-
-๐- 2021 Day 7 Solutions -๐-
Java 17, could be shorter, but I find this more readable (Gauss has helped a lot.)
-
-๐- 2021 Day 6 Solutions -๐-
Java nothing special:
-
-๐- 2021 Day 5 Solutions -๐-
Java 17, if you are looking for one. (However, it is not really a Java community...) I was really lost in diagonals, and it is not an "elegant" or less then 100 bytes of code solution, but I hope it is readable, if you are lost...
-
-๐- 2021 Day 3 Solutions -๐-
Hi! Nothing special, I might refactor later (since it is very rushed together), but Java 17, if you are interested.
What are some alternatives?
When comparing aoc2021 and advent-of-code-2021 you can also consider the following projects:
adventofcode - Advent of code solutions
AlgorithmProblems - Solutions to Algorithm Problems :chart_with_upwards_trend: :neckbeard:
AdventOfCode2021.jl - Advent of Code 2021 in Julia
aoc - advent of code (js / deno ts )
advent-of-code - Advent of Code puzzles
AdventOfCodeRust2021 - Code related to Advent of Code 2021 using Rust
deno_aoc - ๐ Advent of code solutions written in TypeScript for Deno.
advent-of-code-2021
advent_of_code - My solutions to advent of code puzzles
Advent-Of-Code
advent-of-code-2021 - Advent of Code 2021 code challenge solutions. Kotlin this year!
advent-of-code-2021 - My solutions to advent of code 2021 in deno/TS
aoc2021 vs adventofcode
advent-of-code-2021 vs AlgorithmProblems
aoc2021 vs AdventOfCode2021.jl
advent-of-code-2021 vs aoc
aoc2021 vs advent-of-code
advent-of-code-2021 vs AdventOfCodeRust2021
aoc2021 vs deno_aoc
advent-of-code-2021 vs advent-of-code-2021
advent-of-code-2021 vs advent_of_code
advent-of-code-2021 vs Advent-Of-Code
advent-of-code-2021 vs advent-of-code-2021
advent-of-code-2021 vs advent-of-code-2021