advent-of-code
Advent of Code (by MichaelBrunn3r)
adventofcode
Advent of Code (by ednl)
advent-of-code | adventofcode | |
---|---|---|
7 | 8 | |
1 | 2 | |
- | - | |
9.5 | 9.3 | |
5 months ago | about 1 month ago | |
Rust | C | |
- | MIT License |
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-07.
-
-❄️- 2023 Day 8 Solutions -❄️-
[LANGUAGE: Rust]I was running in circles trying to solve this one.First part was easy enough. I was running into an infinite loop in part 2 and then sadly was spoilered the LCM solution. At least I head fun optimizing the code :)Part 2: I converted the 3 char node names into u16 keys. I store the keys of the left/right successors of each node in a massive array, which I can simply index with they node keys. This proved significantly faster than a HashMap. While converting lines into nodes, I store all keys of nodes ending in an A in a starting nodes array. Next, I calcualte the cycle length for each starting row and then calculating the common LCM. I used rayon to speed things up with multithreading (minor improvement)[Code]
-
-❄️- 2023 Day 7 Solutions -❄️-
38.659 µs / 41.981 µs after removing some allocations and custom input parsing [Code].
- -❄️- 2023 Day 6 Solutions -❄️-
- -❄️- 2023 Day 5 Solutions -❄️-
- -❄️- 2023 Day 4 Solutions -❄️-
adventofcode
Posts with mentions or reviews of adventofcode.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-10.
-
An O(n) algorithm for day 11
https://github.com/ednl/adventofcode/blob/main/2023/11.c https://github.com/ednl/adventofcode/blob/main/2023/11alt.c
- -❄️- 2023 Day 11 Solutions -❄️-
-
[2023 Day 8 (Part 2)][GLSL] Brute forced in under a minute on a GPU
First estimate of the lower bound on a single-threaded CPU solution with a ten year old computer is about 10 hours, or 26 hours on a Raspberry Pi 4, ha ha. github
-
-❄️- 2023 Day 8 Solutions -❄️-
Aww, Eric was too kind to us and made sure that we didn't have to detect loops! With some nifty optimisations, my whole program runs in 2.5 ms on a Raspberry Pi 4. Code with lots of comments: https://github.com/ednl/adventofcode/blob/main/2023/08.c My walk function:
-
-❄️- 2023 Day 7 Solutions -❄️-
Complete code with lots of comments: https://github.com/ednl/adventofcode/blob/main/2023/07.c
-
-❄️- 2023 Day 6 Solutions -❄️-
I solved the quadratic equation and that makes the whole program run in 1.2 ms on a Raspberry Pi 4. But simply trying every possible button time isn't much slower: also took milliseconds, shrug. Here is my very verbose function to solve per race. The sq < 0 test was not necessary for the example or my input. Complete code: https://github.com/ednl/adventofcode/blob/main/2023/06.c
-
-❄️- 2023 Day 4 Solutions -❄️-
C has no intersection operation, so I sorted the numbers and counted the matches "manually". Only kept an array for the number of card copies and could do the rest while reading the input. Runs in 3.2 ms on an old 2013 iMac, 3.9 ms on a Raspberry Pi 4 (cpu governor = performance). Short code, only one separate function for sorting: https://github.com/ednl/adventofcode/blob/main/2023/04.c
What are some alternatives?
When comparing advent-of-code and adventofcode you can also consider the following projects:
adventofcode2023 - https://adventofcode.com
aoc2023 - Advent of code 2023
advent-of-code
dafny-aoc-2023
advent-of-code - Solutions to Advent of Code (https://adventofcode.com/)
aoc2023 - Advent of code 2023 solutions
advent-of-code-2023
aoc2023 - Advent of Code 2023 (Mojo)
advent-of-code-2023
advent_of_code - Advent of Code attempts
adventOfCode
aoc2023-rs - Advent Of Code 2023 solutions in rust
advent-of-code vs adventofcode2023
adventofcode vs aoc2023
advent-of-code vs advent-of-code
adventofcode vs dafny-aoc-2023
advent-of-code vs advent-of-code
adventofcode vs aoc2023
advent-of-code vs advent-of-code-2023
adventofcode vs aoc2023
advent-of-code vs advent-of-code-2023
adventofcode vs advent_of_code
advent-of-code vs adventOfCode
adventofcode vs aoc2023-rs