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.
i started solving this and immediately my mind started thinking recursion idk why.
I think the fastest solution would be the most voted one converting to char array and then do the math because the modulo operation is slow.
i tested this function against the simple while loop solution with 500.000 and bigger upper limit it is in fact less performant