AdventOfCode
advent2021
AdventOfCode | advent2021 | |
---|---|---|
4 | 11 | |
0 | 3 | |
- | - | |
6.2 | 0.0 | |
5 months ago | over 2 years ago | |
Python | Rust | |
- | BSD 2-clause "Simplified" 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.
AdventOfCode
-
-๐- 2021 Day 9 Solutions -๐-
Python 3 Ah.. good old recursion in this one :) More a "flow up" than a "flow down". Still learning Python and open to suggestions. Solution A & B
-
-๐- 2021 Day 8 Solutions -๐-
Python 3 Decode the mapping of each segment in a 7-seg display, then decode the input with that built up dictionary. Could probably improve that mapping in some way, as it's really ugly. However once i've gotten that logic down Part A and B become very easy. Solution A & B
-
-๐- 2021 Day 7 Solutions -๐-
Python 3 O(n) runtime for both solutions, using median and mean to calculate the best possible meeting place. Part B uses the Gaussian Sum to calculate the cost. Solution A & B
-
-๐- 2021 Day 4 Solutions -๐-
Python 3.10 Solution A & B Open to any suggestions, still learning Python. Could probably change the two for loops in the actual solution into a list comprehension to generate a list of completions and their scores...
advent2021
- -๐- 2021 Day 11 Solutions -๐-
- -๐- 2021 Day 10 Solutions -๐-
- -๐- 2021 Day 9 Solutions -๐-
- -๐- 2021 Day 8 Solutions -๐-
- -๐- 2021 Day 7 Solutions -๐-
- -๐- 2021 Day 6 Solutions -๐-
- -๐- 2021 Day 5 Solutions -๐-
- Code review AoC Day 4
-
-๐- 2021 Day 4 Solutions -๐-
Rust: Ouch, this one is slow https://github.com/jeremylt/advent2021/blob/main/src/day04.rs 552.623ยตs (Std Dev 32.275) locally, repl currently has some issue with an older version of Rust, so timings are WIP
-
-๐- 2021 Day 3 Solutions -๐-
Ugly but somewhat fast code: https://github.com/jeremylt/advent2021/blob/main/src/day03.rs 46.497ยตs (std dev 5.506) locally, 117.632ยตs (std dev 25.638) on repl.it
What are some alternatives?
adventofcode - Advent of Code challenge solutions
advent-of-code-kotlin - Advent of code 2021 - Kotlin
Advent-of-Code - My solutions or attempts at solutions to the Advent of Code event.
aoc2021 - Advent of code 2021 in JS
advent-of-code - My Advent of Code submissions. For 2021 and before, these are the original code I used, without any modifications after-the-fact. As such, they are probably not as efficient or short as they should be, because I want a working solution faster, not a better solution. For 2022 and after, these are the solutions uploaded to my YouTube channel.
advent - ๐ My Advent of Code solutions
adventofcode
Advent-of-Code - Advent of Code
advent-of-code-2021 - My solutions to advent of code 2021 in deno/TS
AOC - Advent of Code solutions
AdventOfCode2021Kt