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 comment is hidden because it contains spoiler information about the solution
IndexOf is O(n), a better approach to do it with Dictionary so you can do something like:
var dictionary = new Dictionary<char, char>();
Then
dictionary[c] instead of using IndexOf.
Or you can also use pre-populated array that has 26 elements and you can locate the index immediatly instead of using IndexOf too :)
Was just about to comment same thing :)
Is this Java? If yes, try to have this " import java.util.Arrays; " into your solution.