adventofcode2021
advent-of-code-kotlin
adventofcode2021 | advent-of-code-kotlin | |
---|---|---|
7 | 12 | |
3 | 0 | |
- | - | |
1.8 | 1.8 | |
over 2 years 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.
adventofcode2021
-
-🎄- 2021 Day 21 Solutions -🎄-
Misunderstood part 2 at first but I knew it would be a dynamic programming thing simply based on the task itself. This let me eventually clear up my misunderstanding. Had an ugly solution where I always switch between player 1 and 2 based on a toggle, and then saw this beauty so I that clever switching as well.
-
-🎄- 2021 Day 10 Solutions -🎄-
Using a parser for part 1: See here
- -🎄- 2021 Day 5 Solutions -🎄-
- -🎄- 2021 Day 4 Solutions -🎄-
-
-🎄- 2021 Day 3 Solutions -🎄-
Python, 26 lines
- -🎄- 2021 Day 2 Solutions -🎄-
-
-🎄- 2021 Day 1 Solutions -🎄-
``` https://github.com/r0f1/adventofcode2021/blob/master/day01/main.py
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-2021-golang - Advent of code 2021 Go solutions
AdventOfCode - My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA
AdventOfCode2021 - A collection for my Advent of Code (www.adventofcode.com) solutions using Nim, Julia, and Python programming languages
aoc2021 - Advent of code 2021 solutions, in varied languages
aoc2021 - Advent of Code 2021 on my homemade 16-bit CPU SCAMP
tqdm - :zap: A Fast, Extensible Progress Bar for Python and CLI
aoc_ts - 🎄 Advent of code solutions written in TypeScript for Deno. [Moved to: https://github.com/N8Brooks/deno_aoc]
advent2021 - Advent of Code 2021 in Rust
adventofcode - Advent of Code solutions
adventofcode - Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala
aoc2021 - Advent of Code 2021