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.
NASA is looking for you
It's a bitwise AND operator. Examples:
Odd 3: 0011 & 0001 == 0001.
Even 4: 0100 & 0001 == 0000.
As you see, even numbers & 1 equals 0.
Please someone one point what x & 1 means
Looks cool but not optimal, so far I think it's O(n) the optimal solution.
me too
This comment is hidden because it contains spoiler information about the solution
I'm not a Java guru, but I'm pretty sure this is the actual impl for String.toUpperCase().
I did same first, but it was too mainstream.
Excellent, and here i am doing low level programming with python.
That was in a "i'm jelous of this" way, don't take it personal, Sir.
I loved your code, was elegant and simple. I am not used to RegEx.
Thanks Voile! Yea, you don't seem to understand the etiquette here, amirh19. What makes you think you'll understand my explanation?
"Shitty"? Compared to your extremely long and convoluted solution that nobody would have any hope of understanding?
I think it goes without saying which one is the real "shitty code" ;-)
please, explain this shitty code.
me too,
Well, i didn't think this shit so well. Good job for you.