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.
Hahha Took your time with the code!
"for" loops are the fastest. Any other function does that internally anyway.
This was the solution that immediately came to mind but felt the nested for loops + if condition would be rejected because performance degrades on large arrays. It would be at least O(n^2) comparisons, right?