Ad
  • Custom User Avatar

    I think there is a simpler way: for any integer[i], just check its sum with [i - 1] and [i - 2] for an odd number, since the array size is at least 3. We cannot use i + 1 because of the last integer would have out of range problem.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution