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.
Santa Claus must still be waiting for this code to run
Brilliant Solution
This is so cool! I learned several things with this function. Lots of ways I wasn't aware of with type coercion that makes this solution a lot cleaner than my own.
I did the same thing using .slice
so beauty
The
|| c
part is so good.boss !
Looking at this and realising assembly does not seem that bad.
This comment is hidden because it contains spoiler information about the solution
same to same with different words
the joy of coding 😂 feel your pain
Out of curiousity I benchmarked the two, this one is indeed 5 times faster.
learn something new each day
i tried to find fking mistake about 20 mins in my own same code. I wrote
Javascript
instead ofJavaScript
....I would imagine there are some situation in which bitwise would be optimal... couldn't one then simply comment the code for the next developer whom may have to manage the code?
Loading more items...