Ad
  • Custom User Avatar

    Well, those numbers appear only 1 time. And you wanted to list all numbers that appear an odd number of times, so, it works as expected.

  • Custom User Avatar

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

  • Custom User Avatar

    Don't worry, discuss solutions in Solutions next time, and even there, mark your post as having spoiler content when needed, otherwise your posts there are also shown in the home page.

    About your question, if you only need to return the single number that appears an odd number of times, why do you need the other function?

  • Custom User Avatar

    Please don't post solutions in Discourse.