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.
Great point! I think that would be quite a bit better in almost every case. The only issue I can think of is that str1 could be significantly longer and it would then be a bit memory intensive.
Why not do it reverse, requirements be str1 and if for second loop we receive null we will return false?
We will not need to go through the entire (second)loop if a character is missing