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.
This comment is hidden because it contains spoiler information about the solution
Yes, the algorithm was wrong. Now it should work properly
I like yours better! n<10 would be faster than n/10.
great solution :) takes some time to complete though.
This comment is hidden because it contains spoiler information about the solution
Thanks! I'm curious, what's your criteria for using guard vs. if? I typically only use guard when failing the guard would be interpreted as a failure case for the method, or when I'm trying to unwrap an optional that I'd need to use later in the method.
Nice hint! Could use this in many other projects. Thanks!
:%s/;//