Usual lurker, maybe I'll give this a go for a change
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
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
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
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
Not that happy with part 2 but it will do, at least I am caught up now
github.com/csh97/advent...
#kotlin #AdventOfCode
Not that happy with part 2 but it will do, at least I am caught up now
github.com/csh97/advent...
#kotlin #AdventOfCode
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
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
I knew some regex was coming soon, thankfully not too bad today
github.com/csh97/advent...
#kotlin #AdventOfCode
I knew some regex was coming soon, thankfully not too bad today
github.com/csh97/advent...
#kotlin #AdventOfCode
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
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