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.
Why is this faster? Are lots of cases in an if statement slow? Would a switch be faster?
if you write your for loop like this
for (i = 0; s[i]; i++)
it's the same result but without making a length variable and giving it the strings' length
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution