Ad
  • Custom User Avatar

    I thought that in case two numbers have the same number of ocurrences, the first of them in the original array should be picked, no?

    Although yeah, it is not obvious from the proposition.