aoc2021
advent_of_code
aoc2021 | advent_of_code | |
---|---|---|
8 | 19 | |
1 | 5 | |
- | - | |
0.0 | 8.0 | |
over 2 years ago | about 2 months ago | |
Go | Dart | |
- | GNU General Public License v3.0 only |
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.
aoc2021
-
-🎄- 2021 Day 10 Solutions -🎄-
I've done something similar to this in Python before, but this time the completion aspect did throw a little wrinkle into it. That taught me some new stuff about slices, sorting, and idiomatic implementations of a stack in Go. Full source including tests available on Github.
-
-🎄- 2021 Day 7 Solutions -🎄-
In the spirit of "premature optimization is the root of all evil, I just brute forced it. The test suite ran in 70ms on my system so that was good enough for me not to worry about further optimization.
-
What time does the daily challenge drop at your location?
Yes! https://github.com/krmaxwell/aoc2021 organized by days.
-
-🎄- 2021 Day 6 Solutions -🎄-
Like most other folks, I did the naive approach for part 1 and then part 2 was untenable. Props to everyone who did the smart thing from the beginning. As always, my full code including tests is on Github.
-
-🎄- 2021 Day 4 Solutions -🎄-
This one kicked my ass for a while, which was confusing because the tests all passed fine with example data. Eventually I tracked down the problem to the way I was reading in the actual puzzle input... I should've known. Anyway, in addition to the [Github repo](https://github.com/krmaxwell/aoc2021/master/day4] with full tests and stuff, here's the core answer:
-
-🎄- 2021 Day 2 Solutions -🎄-
Same as yesterday, my answers using Go are on Github with a TDD-ish approach. I'm not being super strict with TDD here.
-
Share your go advent of code
My solution for Day 1 is on GitHub. I think you may have made things significantly more complicated than needed.
-
-🎄- 2021 Day 1 Solutions -🎄-
I'm trying in Go this year, just because I'm working on learning it.
advent_of_code
-
-❄️- 2023 Day 9 Solutions -❄️-
Here's the relevant extract from my (recursive) solution. Full code on GitHub.
-
-❄️- 2023 Day 8 Solutions -❄️-
Like others, I used lcm. Here's an extract of the solution, omitting parsing and main(). Full solution on GitHub.
-
-🎄- 2022 Day 14 Solutions -🎄-
Solutions to parts 1 and 2 nearly identical and pretty much worked first time. Nothing clever here. This was far simpler than I thought it would be. I probably spent most time trying to think of a mathematical way of getting all points between p1 and p2. In the end, I just constructed two ranges. Full code here.
-
-🎄- 2022 Day 10 Solutions -🎄-
Full code on github.
-
-🎄- 2022 Day 9 Solutions -🎄-
The core of my solution below using numpy (because I'm learning it!). See github for full code.
-
-🎄- 2022 Day 8 Solutions -🎄-
Python 3 solution using numpy. I got held up because I assume (but know better) that numpy arrays are [x,y] instead of [row, col], which is [y,x].
-
-🎄- 2021 Day 14 Solutions -🎄-
Below is the new solution, which works for part 1 and 2. The full code is on GitHub.
-
-🎄- 2021 Day 11 Solutions -🎄-
These are the key functions. The whole code is on GitHub
-
-🎄- 2021 Day 9 Solutions -🎄-
Part 2 (extract shown below) was a matter of starting with the low points found in part 1 then recursively looking around for relevant points. Full code on GitHub
-
-🎄- 2021 Day 8 Solutions -🎄-
Code is on GitHub.
What are some alternatives?
advent-of-code
AdventOfCode2021 - Solutions to all 25 AoC 2021 problems in Rust :crab: Less than 100 lines per day and under 1 second total execution time! :christmas_tree:
AdventOfCode - My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA
adventofcode - Solutions for problems from AdventOfCode.com
toit - Program your microcontrollers in a fast and robust high-level language.
adventofcode - Advent of Code Repo for Zach Attakk
advent-of-code - Advent Of Code Solutions
advent-of-code-2021
adventofcode - Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala
AoC - my personal repo for the advent of code yearly challenge
advent-of-code-kotlin - Advent of code 2021 - Kotlin
advent-of-code