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'll try do my best
IMHO. Code Style is not good
This comment is hidden because it contains spoiler information about the solution
It checks if a number is even. Just an alternative way of saying
n % 2 == 0
(n&1) == 0. What is this line doing?
Thank you for your reviewing.
Should check for null though.
Misunderstood circle. Thought it could go two ways.
Wrong if statement. Should be (n < 0 || (n & 1) == 0)
There is a solution that will not time out. I'll make a note on the description. Thanks for the feedback.
Yes, I have missed that case. Thank you for comment.
should note that:
1.return -1 if n<1
2.control the time
This comment is hidden because it contains spoiler information about the solution
Agree completely!
This comment is hidden because it contains spoiler information about the solution
Loading more items...