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.
Seems I'd invented a square wheel here, it's O(2n) or so :(
For all discussing performance over readability... Usually, the piece of highly optimized code is never read nor changed after it works. One may hide it somewhere in a helpers folder and you ain't gonna see it. So it depends on what you need.
It is not fully correct, accidentally clicked Submit, but sometimes Approve didn't pass. (leftPiece.First() and rightPiece.First() sometimes have no elements)
The topic is the "DataStructures"