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 know I'm 2 years late, but his code is about ~3 faster. Tested it with 1 and 10 million executions.
👍
Nice code.
Code should be explicite for humans, not machines. So it's not a best practice for me.
Wow. Really smart
You can (and should) always go back to regular loops or higher performance variants as soon as you identify code like this being a bottleneck because it is called very frequently or with very large values. It really depends on the case, so in some way you are both right.