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.
This comment is hidden because it contains spoiler information about the solution
Actually, it's neither of those. It should be:
"The first zero is negative, the second is positive, the third is negative, the fourth is positive, and so on..."
I've added "the third is negative" to the description to make it clearer.
Not very clear,are there more than 2 elements occuring an odd number of times?
Now I think you need Voile's hint: there is a way to invoke functions without using parenthesis.
Or my hint: sometimes ==0 equals to <1 (only sometimes) and hope you never used %1 in your code ;-)
Ok, thanks - I get it. I have never heard about that "bad". What we need is just turn the page in learning book.
https://www.codewars.com/kata/beginner-reduce-but-grow
To solve this kata, and then to see my "clever" solution. Perhaps you can find some new way for this kata ;-)
This comment is hidden because it contains spoiler information about the solution
What can I do? Will I be getting through?
Now that I must try To leave it all behind..
Reduce only to 50 characters. Where i can bye more powefull evil? And how it smoke ))?
sometimes ==0 equals to <1 (only sometimes) and hope you never used %1 in your code ;-)
is this helpful?
Okay, so you're probably stuck at the last part.
Hint: there is a way to invoke functions without using parenthesis.
well im taking js and c/c++ classes at my high school and im still kinda iffy on the emca6 arrow notation, but i am stuck at 47 characters, im not really sure im a script kiddie, but everyone starts somewhere right?
The hints below are barely subtle at all, but just in case: ==0 cannot save you 3 bytes (from 49 to 46), so you shouldn't worry about that yet.
The first trick involved would be what I'd imagine a script kiddie who self-learns only JS and knows nothing about "best practices" or C syntax would do :P And the second one is very obscure. You'll need the second when you reach 47.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...