Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Ah, yes I see now, thanks
It works, it's just too slow ;-)
doesn't work for next_bigger(19999999)
I learned a lot about
sum
method here. I never even thought about it taking a block. Awesome!0 + 0 + 1
is 1, not 0.I am failing 2-5 test cases for which my solution returns the correct value on my machine and on REPLIT. I printed the return value and the log on these says false, but the result is 'expect: false, got: true'. I don't understand, why my solution always returns the correct value according to the log but a few are counted as incorrect?
uniq method isn't needed