advent-of-code-2022
aoc
advent-of-code-2022 | aoc | |
---|---|---|
8 | 26 | |
0 | 1 | |
- | - | |
10.0 | 8.3 | |
over 1 year ago | 5 months ago | |
D | Elixir | |
- | - |
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-2022
-
-🎄- 2022 Day 14 Solutions -🎄-
Slow dlang solution that simulates sand drops one grain at a time, one pixel at a time. Here's the main loop for part 2. The occupied[grain] = true assignment is due to the fact that the standard library doesn't have a hashset (to my knowledge), so instead I'm putting Points in an associative array while discarding the values.
-
-🎄- 2022 Day 13 Solutions -🎄-
Dlang solution, using JSON parsing from the standard library. At first I misunderstood the problem and kept getting failures in the second pair. I thought [2,3,4] vs [4] meant that the right list will run out of items after having successfully compared 2 and 4, but then I learned that this would only happen if 2 and 4 were equal (thanks to this thread). This made me realize that a binary comparison wasn't enough and pushed me to write the convoluted ternary comparison function below :
-
-🎄- 2022 Day 12 Solutions -🎄-
Dlang solution using BFS. Relevant part :
-
-🎄- 2022 Day 11 Solutions -🎄-
Dlang solution as usual, here's the class that handles monkey business :
-
-🎄- 2022 Day 10 Solutions -🎄-
Dlang solution. For part 2 I initially thought that the X register contains values exceeding 40, so I kept appending pixels to the CRT while comparing them to the sprite, and in the end I printed the string in chunks of 40. Only later did I realize my mistake
-
-🎄- 2022 Day 9 Solutions -🎄-
Dlang bruteforce solution. For some reason I thought the rope was 9 knots long and kept getting off by one results. Relevant part 2 portion :
-
-🎄- 2022 Day 8 Solutions -🎄-
Dlang bruteforce solution
-
-🎄- 2022 Day 7 Solutions -🎄-
Dlang solution, part 2. I'm embarrassed by this code but I'm sharing it because it took a lot of effort to write it. Previous solutions are available in this repo
aoc
- -🎄- 2022 Day 25 Solutions -🎄-
- -🎄- 2022 Day 24 Solutions -🎄-
- -🎄- 2022 Day 23 Solutions -🎄-
- -🎄- 2022 Day 22 Solutions -🎄-
- -🎄- 2022 Day 21 Solutions -🎄-
-
-🎄- 2022 Day 20 Solutions -🎄-
Low effort lazy tail-recursive perl: https://github.com/ramuuns/aoc/blob/master/2022/Day20.pm
- -🎄- 2022 Day 18 Solutions -🎄-
- -🎄- 2022 Day 17 Solutions -🎄-
- -🎄- 2022 Day 16 Solutions -🎄-
- -🎄- 2022 Day 15 Solutions -🎄-
What are some alternatives?
adventofcode - Solutions for problems from AdventOfCode.com
AoC2022 - Solutions to Advent of Code 2022 puzzles.
adventofcode - :christmas_tree: Advent of Code (2015-2023) in C#
advent-of-code-2022 - actually publishing my solutions now that they're not redundant...
AdventOfCode2022 - Solutions to all 25 Advent of Code 2022 in Rust 🦀 Less than 100 lines per day, total runtime of less than 1 second.
aoc2022 - Advent of Code 2022 on SCAMP
aoc-factor - Advent of Code solutions in Factor
personal_code - random code that I have lying around
advent_of_code_2022
AOC2022 - Advent of Code 2022, solved in Haskell
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-2022 - 🎄 My Advent of Code solutions in Rust. http://adventofcode.com/2022