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 made the examples language agnostic instead (most o the languages were missing anyway... :/ )
Thank you!
Hi,
You actually need to find a better way to solve this. Your code is pretty slow on big inputs (imagine if
n=10**20
?). Advise: completely drop the loop part and find something better.Note: this is actually a "question", not an "issue" => closing the "issue" aspect (the "issue" label is used for a problem with the kata itself, not for a user having troubles with his solution)
cheers
This comment is hidden because it contains spoiler information about the solution