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.
Yes so it will check if k > 0 on every iteration of the loop.
Perhaps an initial check would be better since it doesn't change.
k > 0 is in the conditional part of the for loop
k > 0 is in the conditional part of the loop.
It seems you're handling the
k >= 0
case in the declaration of the loop.Although it saves a couple lines of code, it's a bit unclear and redundant to do the check on every iteration.
"s4" is perhaps a bit missleading as it isn't really a string.