Ad
  • Default User Avatar

    Actually, the code has to return the amount of times that a number appears. If amount be odd number, return number that mathces with the amount. For example, in the array [0], return 0 because appears only 1 time, that is a odd number.

  • Custom User Avatar

    The description is very clear: find the one that appears an odd number of times. It's not at all about selecting odd or even numbers.

    Anyway, not a suggestion.