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.
I don't think that you will get an answer here;-)... Some users like to mark their own kata(s) as "best practice" or "clever", perhaps it is one of this kind... It's always funny to see, so a little bit fun on these "serious coding site":-))...
How is this marked as best practice? This would take O(n^2). Very bad actually.
I concur. I was looking at this and noticed that it traverses the list of N items twice just to get the odd, even lists.
Also... I don't think the parseInt map was necessary. Would that be considered another pass to the list? 3N iterations instead of N? Clever that it is only 4 lines of code.... But not very effecient for large N.