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.
How else am I going to request a C# translation for this Kata?
Somebody please open this for C#.
Slowly trimming the string from the start is going to hurt performance, and is unnecessary. Your words are split with either a
' '
, or with a'-'
, so you can just use those two characters as the delimiters when splitting the string into multiple words, and process those instead, without touching the original string.This comment is hidden because it contains spoiler information about the solution