• + 1 comment

    It does not work with x>y. For example the following test cases returns Even although it should return Odd as find() returns 1:

    5
    0 0 0 0 0
    2
    5 1
    4 1
    
    • + 0 comments

      @adrien_cordonni1 The problem statement says x is less than or equal to y.