Having some issues with Part 2, need some help, co...
# advent-of-code
t
Having some issues with Part 2, need some help, code and explanation in thread
Untitled.kt
so I'm doing fine when tackling the test input with 10 and 100
so I dunno why it'd be wrong here
j
What order of magnitude solution size are you expecting? 😉
t
Right
It was just too big for int
ehhhh
Should've checked that first
Thanks for pointing it out
works now
just had to convert to Longs
I swear the Longs lobby is strong this year
j
👍 classic. In my solution template I have return type as Long by default just to remind myself that I might need to change it.
j
Yeah common wisdom is, every solution should be able to be computed in Long
e
though if you're compiling Kotlin to JS, Long is significantly slower as it needs to be emulated instead of doing through Number