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
yep! you can do repeat = arr[0] at line 3 and remove the else! nice one!
I enjoyed working with your solution. I found yours to be faster than mine for two reasons. I noticed your use of repeat to represent arr[0]. using this rather than arr[0] in the loop really reduced the time. I also found that a for loop using range is also faster than a while loop. I have a minor question. Why not assign repeat to arr[0] before the if statement? Anyway I really enjoyed working with your code solution.