It checks if a number is even. Just an alternative way of saying n % 2 == 0
n % 2 == 0
(n&1) == 0. What is this line doing?
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.
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
It checks if a number is even. Just an alternative way of saying
n % 2 == 0
(n&1) == 0. What is this line doing?
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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution