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.
Just want to mention that the question said "The input string will only consist of lower case letters and/or spaces."
Nice Code
My eyes are bleeding, and my brain is hurting!
I find it hilarious that you solved a functional programming problem usign an OOP approach. Great!
This comment is hidden because it contains spoiler information about the solution
Pretty much what I did as well, but I used a different naming convention for var names.