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.
You definitely don't need
var mychars = dna.ToCharArray();
as doing a .Select in a string will already use IEnumerable. I think it's better to not use Select and loop using for or a foreach loop and use TryGetValue and check if the method returns true or false. That way, you won't get an exception if the char isn't on your mapping dictionary! :)No, you don't need it. Trying to loop a string or use a Select method will always use IEnumerable, since a string is made of a list of char.
One letter not available in the dictionary and it will crash lol, should've added try catch to always be safe.