2 ms·
I love AoC. You don't have to care about the AI bots solving it or people waking up earlier than you, just solve it for your own fun. Either because you like th
by matsemann 2y ago
I love AoC. You don't have to care about the AI bots solving it or people waking up earlier than you, just solve it for your own fun. Either because you like the challenges, or to try it in a new language etc.
I like to do them in a functional style in Kotlin as far as possible, as that's different from what I do at work.
Edit: Here's mine from today, with my utils it's not exactly plain kotlin, but part of the fun is building a library of sorts with cool functions https://github.com/Matsemann/algorithm-problems/blob/main/adventofcode2024/src/main/kotlin/com/matsemann/adventofcode2024/Day01.kt https://github.com/Matsemann/algorithm-problems/blob/main/ad...
- c-fe 2y agoNice one, i like your transpose function, as python-numpy user in past years, but kotlin this year, i really missed the transpose function the most for this day one. My code: https://github.com/charelF/AdventOfCode/blob/main/kt/src/y2024/D01.kt https://github.com/charelF/AdventOfCode/blob/main/kt/src/y20...
- matsemann 2y agoUnzip was nice, will remember that one! This is also what I like, reading other's solutions and learning new stuff. I browse the subreddit after solving it myself to see all kinds of cool approaches.