advent-of-code
Solutions for Advent of Code problems in various languages. (by Andrew-William-Smith)
advent-of-code-2021
Advent of Code 2021 Java 17 (by zebalu)
advent-of-code | advent-of-code-2021 | |
---|---|---|
2 | 12 | |
3 | 0 | |
- | - | |
4.5 | 0.0 | |
over 2 years ago | about 2 years ago | |
Erlang | Java | |
GNU General Public License v3.0 only | 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.
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 2021-12-08.
-
-π- 2021 Day 9 Solutions -π-
This was a pretty fun day! I'm very glad that I took the time to write a small utility module for handling multidimensional arrays in Erlang a few days ago: otherwise, trying to wrestle coΓΆrdinates would have quickly become painful. This was also my first time writing DFS in Erlang; a queue-based tail-recursive approach ended up being much cleaner than a simple recursive approach that used lists:foldl/3 to pass the modified matrix between neighbours. Writing the algorithm both was was definitely a great learning experience though!
-
-π- 2021 Day 1 Solutions -π-
Solution on GitHub
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.