advent-of-code-2021
advent-of-code-kotlin
advent-of-code-2021 | advent-of-code-kotlin | |
---|---|---|
6 | 12 | |
2 | 0 | |
- | - | |
5.1 | 1.8 | |
over 1 year ago | over 2 years ago | |
Python | Kotlin | |
- | - |
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 Day 14 Solutions -🎄-
I was stuck on the counting part (after being stuck in the How should I solve the massive string being massive? part hahaha). So I finally came here for some hints, and found your code. And this comment saved the day: # The only new character we've added to the overall string is the new # added element. The quantity is the same as the pair that generated it # For example, 25 ABs will generate 25 new Cs if the rule is AB -> C Actually I'm kinda scary because our codes are fairly similar :p There's some simplifications/contractions/tricks maybe you'll benefit from (even though my code is far from perfect in its tricks): https://github.com/ThePituLegend/advent-of-code-2021/tree/main/day14
-
-🎄- 2021 Day 5 Solutions -🎄-
But hey, it works. ¯\_(ツ)_/¯ https://github.com/ThePituLegend/advent-of-code-2021/tree/main/day5
- -🎄- 2021 Day 4 Solutions -🎄-
- -🎄- 2021 Day 3 Solutions -🎄-
- -🎄- 2021 Day 2 Solutions -🎄-
- -🎄- 2021 Day 1 Solutions -🎄-
advent-of-code-kotlin
-
-🎄- 2021 Day 11 Solutions -🎄-
Kotlin solution (part 1 and part 2 merged)
-
-🎄- 2021 Day 9 Solutions -🎄-
Kotlin solution, probably not the most efficient but does the job.
-
-🎄- 2021 Day 7 Solutions -🎄-
Kotlin solution for day 7, can be done fairly concisely:
-
-🎄- 2021 Day 6 Solutions -🎄-
Kotlin solution using a fish counter map:
-
Advent of Code in Kotlin: Day 5, 2021
Day 3 — a few key concepts used are: extensions for example on List type higher-order functions aka a function which takes other functions as parameters
-
-🎄- 2021 Day 5 Solutions -🎄-
Nice! here is my solution also in Kotlin
- -🎄- 2021 Day 4 Solutions -🎄-
-
-🎄- 2021 Day 3 Solutions -🎄-
Kotlin solution for day 3, not the most concise nor most optimized but gets the job done and fairly readable.
-
-🎄- 2021 Day 2 Solutions -🎄-
Kotlin, solution for part 1 and 2 — not super concise but a few cool concepts if you're learning the language.
-
Advent of Code in Kotlin: Day 1
You can find the source code for my solution here.
What are some alternatives?
Advent-of-Code - Advent of Code
AdventOfCode - My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA
advent_of_code - Solutions to programming puzzles on Advent of Code
aoc2021 - Advent of code 2021 solutions, in varied languages
aoc2021 - Advent of Code 2021 Solutions
tqdm - :zap: A Fast, Extensible Progress Bar for Python and CLI
advent-of-code - Advent Of Code Solutions
advent2021 - Advent of Code 2021 in Rust
AdventOfCode2021.jl - Advent of Code 2021 in Julia
adventofcode - Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala
AdventOfCode2021 - Advent of code 2021
Advent-of-code-2021-golang - Advent of code 2021 Go solutions