Expected output is wrong

  • -1

    It says my solution is wrong. For the input


    my solution produces the output:


    but the expected output is:


    now the expected output lists only 9 pairs, while my solution gives 10 pairs.

    Isn't my output correct?

  • 0

    Actually your output is wrong

  • 0

    @dulibuju but why? The output should have 10 pairs. The expected output only has 9 pairs. I don't get it. What is it that I don't see here?

  • 0

    Oh! I see it now! Sorry for posting a stupid question.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.