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.
This way you ensure the string spans from beginning to the end with just one letter. Otherwise you would match any string with a vowel, for example 'codewars'. Because of the above, your solution wouldn't work with the current test set.
Upvoting for best-practices because its one of the few solutions that only loops once over the input.
Definitely agreed! It just happened to me in ruby version.