advent-of-code-2021
advent-of-code-2021
advent-of-code-2021 | advent-of-code-2021 | |
---|---|---|
4 | 16 | |
1 | 3 | |
- | - | |
0.0 | 0.0 | |
10 months ago | over 1 year ago | |
JavaScript | Zig | |
MIT License | - |
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-2021
-
[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]
advent-of-code-2021
- 2015-2022: What solution to a problem are you the most proud of
- [2021 day 6] What's you're fastest solution?
-
[2021 Day 16] [Rust] A stupidly overbuilt solution (I even found a rustc ICE)
nice work! i had been trying to write zero alloc solutions when possible, but i had missed that it was possible on this one. here's my zig translation, it runs in about 15us on my m1 macbook / WSL 10850k. there are no iterators in zig so i had to write that myself, but i think my final solution reads reasonably well
- -🎄- 2021 Day 21 Solutions -🎄-
- -🎄- 2021 Day 20 Solutions -🎄-
- -🎄- 2021 Day 19 Solutions -🎄-
- -🎄- 2021 Day 18 Solutions -🎄-
- -🎄- 2021 Day 17 Solutions -🎄-
- -🎄- 2021 Day 16 Solutions -🎄-
- -🎄- 2021 Day 15 Solutions -🎄-
What are some alternatives?
AdventOfCode.Template - Advent of Code C# (.NET 8) template. Based on AoCHelper (https://github.com/eduherminio/AoCHelper)
advent-of-code-2021-rust
advent-of-code-typescript-starter - Typescript template in Node.js for Advent of Code event
swift-algorithms - Commonly used sequence and collection algorithms for Swift
advent2019-fast - Advent of Code 2019 optimized solutions in C++
aoc - Advent of Code - mscha's Perl 6 solutions
aoc2021
advent-of-code-2021 - Code I used for solving https://adventofcode.com/2021
adventofcode - Solutions for problems from AdventOfCode.com
adventofcode2021 - Advent of Code 2022
BQN - An APL-like programming language. Self-hosted!
advent-2021-kotlin - :christmas_tree: Advent of Code 2021: Solutions in Kotlin