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.
I love this solution. I was thinking that essentially all we were doing was a lookup, so an object would have been perfect, and I also wanted to use a switch statement but was too tired to implement it properly. This one is a great example of when to use a hash table for lookup and best use of the Big O consideration of the exercise.
Love it mate, good job. Will keep this kind of approach in mind going forwards.