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.
Awesome
Genius!
very nice!
I did not understand at first so had to go step by step on paper.
first top voted solution that is really cool in a while
Wow, nice and elegant aproach, but you should use '===' instead of '==' to compare left and right as we intend to compare their numerical value so including type aswell ( in your case "false" would be equal to "0" etc ), and I personally am not a fan of using vars ( "let" and "const" would be more elegant )
But of course some compilers would optimize it for us themselves.
This comment is hidden because it contains spoiler information about the solution
And here I am, slicing up the array like a madman with a rusty cleaver...
Love this one!
But there is an index that will make it work. It's 0.
On index
0
left and right values are equal.This one is my favorite
!! Brilliant
Very cool idea, to add and subtract
Doh! Using 1 variable for count instead of 2 is smart nice job
fun kata and still reasonable best practice.
Loading more items...