Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkulak/adventofko2023
Advent of code 2023 solutions in Kotlin
https://github.com/mkulak/adventofko2023
advent-of-code advent-of-code-2023 aoc-2023-in-kotlin kotlin
Last synced: 18 days ago
JSON representation
Advent of code 2023 solutions in Kotlin
- Host: GitHub
- URL: https://github.com/mkulak/adventofko2023
- Owner: mkulak
- Created: 2023-12-01T14:52:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-17T19:46:21.000Z (about 1 year ago)
- Last Synced: 2023-12-18T17:52:40.496Z (about 1 year ago)
- Topics: advent-of-code, advent-of-code-2023, aoc-2023-in-kotlin, kotlin
- Language: Kotlin
- Homepage:
- Size: 203 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Advent of Code 2023
=
Solutions for [aoc 2023](https://adventofcode.com/2023)All code is in Kotlin 1.9
Featured solutions:
===
* [Day 10](src/main/kotlin/Day10.kt) - unreadable due to code golf but kinda cool. It also produces nice visual: ![day 10 viz](pics/day10.png)
* [Day12](src/main/kotlin/Day12.kt) - that one was really hard for me, I struggled a lot.
Memoizing function by wrapping its body with `cache.getOrPut(key) { ... }` was fun.
* [Day15](src/main/kotlin/Day15.kt) - super straightforward due to LinkedHashMap being part of std,
I feel sorry for langs that don't have it
* [Day17](src/main/kotlin/Day17.kt) - nice viz as well ![day 17 viz](pics/day17.png)
* [Day18](src/main/kotlin/Day18.kt) - I was able to find bug due to visualization: ![day 18 viz](pics/day18.png)
* [Day20](src/main/kotlin/Day20.kt) - For part 2 I just eye-balled the data, came up with a hacky idea
and did several runs to calculate different periods. No clue how to solve it in general casePart 2 of days 21, 23 and 24 is beyond my comprehension. I have 0 clue how to solve it.
![](pics/main.png)