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.
10e + 1s case is irrelevent because length check
what happens if you have 10 of e and 1 s? They would cancle each other out... Better 2 variables.
Because the second j starts from i+1 so it will never be equal to i and it skips unnecessary steps.
If your loop has j=0 replace it with j=i+1
I just answered you below pointing out how you can find this out for yourself.