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.
Instead of having a boolean to track the result, you could just return false when it reaches a failing condition ;-) (this way you don't have to go through the entire string every time)
Good solution nontheless.
can somebody explain why he used that "log10(n)" over there ?
I haven't done any math in like 2 years so I kinda forgot about logs and how they work.
Thanks a lot !