csh
banner
csh.codes
csh
@csh.codes
Server-side Kotlin 🧑‍💻
Usual lurker, maybe I'll give this a go for a change
Day 07 ✅

Playing catch up again, at least this wasn't too bad. I'm sure there are ways to cut down the search space but 🤷

TIL you can pass a radix into toString which was very handy

github.com/csh97/advent...

#kotlin #AdventOfCode
December 9, 2024 at 12:06 PM
Day 06 ✅

Tried to keep it all immutable but part 2 took ~8mins 😅
Refactored it to be mutable and part 2 runs in ~500ms now

(I think the codes starting to get too big for the images)

github.com/csh97/advent...

#kotlin #AdventOfCode
December 7, 2024 at 7:53 PM
Day 05 ✅

Not that happy with part 2 but it will do, at least I am caught up now

github.com/csh97/advent...

#kotlin #AdventOfCode
December 5, 2024 at 10:10 PM
Day 04 ✅

Playing catchup today, I've already managed to fall behind 😅

Can definitely be improved but I don't have time, using a try catch instead of checking boundaries feels gross but it works 🤷

github.com/csh97/advent...

#kotlin #AdventOfCode
December 5, 2024 at 9:24 PM
Day 03 ✅

I knew some regex was coming soon, thankfully not too bad today

github.com/csh97/advent...

#kotlin #AdventOfCode
December 3, 2024 at 9:17 AM
Day 02 ✅

Made some silly mistakes in part 2 due to misreading the explanation, but made for some good debugging

I feel like there's a better way than brute forcing but its day 02 🤷

github.com/csh97/advent...

#kotlin #AdventOfCode
December 2, 2024 at 10:26 PM
Its that time of year again, Advent of code day 01 ✅

Nice use case for `zip()` and `unzip()` today!

github.com/csh97/advent...

#kotlin #AdventOfCode
advent-of-code-2024-kotlin/src/day01.kt at main · csh97/advent-of-code-2024-kotlin
Contribute to csh97/advent-of-code-2024-kotlin development by creating an account on GitHub.
github.com
December 1, 2024 at 10:03 PM