aoc-2020
Advent-of-Code
aoc-2020 | Advent-of-Code | |
---|---|---|
5 | 42 | |
3 | 9 | |
- | - | |
1.8 | 8.6 | |
over 3 years ago | 4 months ago | |
Rust | Python | |
- | - |
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.
aoc-2020
-
Now what? (350 stars)
I've tried it a few times and solutions were surprisingly elegant! E.g., 2020-01-p2.
-
[2020] Optimized solutions in C++ (291 ms total)
Figured I'd post my benches as well, see below. Everything done in Rust (link to source).
-
-🎄- 2020 Day 24 Solutions -🎄-
Here's my day 24 in Rust, using SIMD as usual :) (and offset coordinate encoding to make a SIMD-friendly 2-D cell grid)
-
-🎄- 2020 Day 22 Solutions -🎄-
Borrowed both ideas in my version :) On my input your version runs at 3ms, mine in 1.5ms, so it might be faster on some inputs (link). I initially started with something similar to yours but then figured why not use 512-bit ints, so that the notion of 'head' and 'tail' disappears as your head then stays at position 0 (so, e.g., to remove a card, you just right-shift the whole bigint). Also used a tiny bit of simd along the way.
Advent-of-Code
-
-❄️- 2023 Day 11 Solutions -❄️-
Fun one :D
-
-❄️- 2023 Day 10 Solutions -❄️-
Way trickier than I was expecting
-
-❄️- 2023 Day 9 Solutions -❄️-
:D
-
-❄️- 2023 Day 8 Solutions -❄️-
Classic LCM
-
-❄️- 2023 Day 7 Solutions -❄️-
Who wants spaghetti?
-
-❄️- 2023 Day 6 Solutions -❄️-
Much easier than yesterday's :D
-
-🎄- 2022 Day 12 Solutions -🎄-
195/242
-
-🎄- 2022 Day 11 Solutions -🎄-
Messy. Thankfully got part two pretty quickly recognizing that we can mod the worry level by the product of the test integers. Might refactor / clean this up tomorrow morning
-
-🎄- 2022 Day 10 Solutions -🎄-
2343 / 2119
-
-🎄- 2022 Day 6 Solutions -🎄-
Impressive how fast everyone was with this one today
What are some alternatives?
Advent_of_Code_in_Pascal - My solutions to the Advent of Code, in Free Pascal
adventofcode - Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala
advent-of-code-go - All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022
AdventOfCode-Java - adventOfCode(Language.JAVA);
hac - HAC Ada Compiler - a small, quick Ada compiler fully in Ada
AoC - my personal repo for the advent of code yearly challenge
aoc-2020 - My solutions for https://adventofcode.com
adventofcode - Solutions for problems from AdventOfCode.com
advent-of-code-2020 - Answers and solutions for Advent of Code 2020.
AdventOfCode - My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA