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.
Could you explain an efficient solution which avoids doing this?
Just because they're done easily doesn't mean they're the best. This makes multiple passes over an array
This comment is hidden because it contains spoiler information about the solution
Think I am confused as to why it needs to be returned with ToArray() at the end.
I love seeing these done so easily after I just took 6 lines of code to complete the same task. (this was even after cleaning it up).