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.
The break statement inside the inner loop will always be executed after the first iteration because of the else clause, causing the outer loop to also break prematurely. And you don't need nested loop for this solution.
It's completely valid kata, try revising your solution.
This comment is hidden because it contains spoiler information about the solution
for
is more suitable I think.@Chrono79 This won't happen in next time. Thank you!
Please, don't forget using spoiler flag next time.
Agreed its not very scalable; yours is much nicer
This comment is hidden because it contains spoiler information about the solution