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.
Actually, is not clever because it iterates multiple times on the original array.
Short code is not always clever.
Caution; string.toLowerCase().split('this').length returns amount of delimiter + 1. Be sure to deduct the one when trying to count number of delimiters.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Looking at it again now, yes, yes it is quite clever. Cant belive i thought of that.
That's clever. That's a nifty way to count the amount of delimiters in a string. It's worth remembering.