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
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You realize complexity is measured in terms of worse case. So worst case is O(N) if you're iterating through the list. There's no such thing as O(2N) factors drop off in complexity measures.
Linq Select has an override that gives you the index of the current item in the selector (that index is the same number of times you need to repeat). I used Repeat didn't realize there was a string constructor overload that does the same.
Also totally forgot about string.Join. Much cleaner code than I wrote on my first pass.
This comment is hidden because it contains spoiler information about the solution
Maybe we should add this to the edgecases.
This comment is hidden because it contains spoiler information about the solution