advent2019-fast
Advent of Code 2019 optimized solutions in C++ (by Voltara)
advent-of-code-2021
Solutions to Advent of Code 2021 (by warriordog)
advent2019-fast | advent-of-code-2021 | |
---|---|---|
2 | 4 | |
29 | 1 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | 10 months ago | |
C++ | JavaScript | |
- | 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.
advent2019-fast
Posts with mentions or reviews of advent2019-fast.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-05.
-
[2021] Big Inputs for Advent of Code 2021 Puzzles
Wish I could do like https://github.com/Voltara/advent2019-fast/blob/master/src/day03.cpp and only check perpendicular pairs for intersections, but this problem has significantly more elements, because some pairs of vents can be collinear (and generate many intersections), and there are diagonals to contend with.
-
[2020] [Nim] All days in less than 1 second
Just wait for this guy to solve everything in < 9ms.
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-05.
-
[2021] Big Inputs for Advent of Code 2021 Puzzles
My original, unoptimized JS solution runs 9999999 in about 440 seconds. I thought that I'd cut that down with some heavy optimization, but it still takes the exact same time. Some loose profiling shows that most of the time is actually spent waiting for memory accesses, not in the CPU. I guess that's due to all the BigInts.
-
What is the best way to read a text file of your input in your language of choice?
I'm using Javascript (NodeJS) again this year. I've got a small common/io.js module that exports this function:
-
-🎄- 2021 Day 1 Solutions -🎄-
Javascript [Part 1] [Part 2]
What are some alternatives?
When comparing advent2019-fast and advent-of-code-2021 you can also consider the following projects:
AdventOfCode - My C# and F# Advent Of Code solutions
AdventOfCode.Template - Advent of Code C# (.NET 8) template. Based on AoCHelper (https://github.com/eduherminio/AoCHelper)
advent-of-code-typescript-starter - Typescript template in Node.js for Advent of Code event
advent-of-code - Advent of Code
aoc2021