advent-of-code-2021
aoc2021
advent-of-code-2021 | aoc2021 | |
---|---|---|
4 | 23 | |
1 | 9 | |
- | - | |
0.0 | 0.0 | |
11 months ago | over 1 year ago | |
JavaScript | Go | |
MIT License | 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]
aoc2021
-
-🎄- 2021 Day 18 Solutions -🎄-
Go, 19196/19041
-
-🎄- 2021 Day 17 Solutions -🎄-
Go, 1093/563
-
-🎄- 2021 Day 16 Solutions -🎄-
Go, 2758/2421
-
-🎄- 2021 Day 15 Solutions -🎄-
Go, 631/732
-
-🎄- 2021 Day 14 Solutions -🎄-
Go 1449/3191
-
-🎄- 2021 Day 13 Solutions -🎄-
Go, 2400/1659
-
-🎄- 2021 Day 12 Solutions -🎄-
Go, 3030/3121
-
-🎄- 2021 Day 11 Solutions -🎄-
Oh also lost about 2-3 minutes on part A initially trying to use my challenge.TileMap so I didn't have to worry about computing x/y but converting to/from rune all the time was taking way too long and was hard to follow. Man, I can't wait until generics!
-
-🎄- 2021 Day 10 Solutions -🎄-
Go, 2815/3818
-
-🎄- 2021 Day 9 Solutions -🎄-
Go, 1730/3574
What are some alternatives?
AdventOfCode.Template - Advent of Code C# (.NET 8) template. Based on AoCHelper (https://github.com/eduherminio/AoCHelper)
AoC - my personal repo for the advent of code yearly challenge
advent-of-code-typescript-starter - Typescript template in Node.js for Advent of Code event
advent-of-code-go - All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022
advent2019-fast - Advent of Code 2019 optimized solutions in C++
adventofcode - Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala
aoc2021
AdventOfCode2021 - Advent of code 2021
adventofcode - Solutions for problems from AdventOfCode.com
AdventOfCode2021.jl - Advent of Code 2021 in Julia
BQN - An APL-like programming language. Self-hosted!
adventofcode - Advent of code solutions