You are viewing a single comment's thread. Return to all comments →
It does not work with x>y. For example the following test cases returns Even although it should return Odd as find() returns 1:
x>y
Even
Odd
find()
1
5 0 0 0 0 0 2 5 1 4 1
@adrien_cordonni1 The problem statement says x is less than or equal to y.
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Even Odd Query
You are viewing a single comment's thread. Return to all comments →
It does not work with
x>y
. For example the following test cases returnsEven
although it should returnOdd
asfind()
returns1
:@adrien_cordonni1 The problem statement says x is less than or equal to y.