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 added more specification for that rule, Also glad to hear that some coders go to gym!
.
Yes, the kata can be solved in JS, my solution takes ~4s to run all tests. This kata has performance requirements, you need a better approach than your current one. Your current idea is simply not efficient enough.