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.
Nice algorithm!
This is one of the fastest algorithm I tested,(I havent check them all).
I was thinking backwards and checking each character of the string 26 times, you too! but at
least you capped the string to 26, It also seems that checking indexes is faster than checking variables.
Powerful you are master!..
You are returning true inside your for loop, assuming your code aboe was a copy and paste. This would mean you are only ever going to iterate once, effectively only checking for the letter 'a' before returning either false or true.
Good thinking to arrange the order of the letters from least to most common.