Expected output is wrong


  • -1
    M

    It says my solution is wrong. For the input

    [1,1,2]
    [1,2,3]
    10

    my solution produces the output:

    [[1,1],[1,1],[2,1],[1,2],[1,2],[1,3],[2,2],[1,3],[2,3],[2,3]]

    but the expected output is:

    [[1,1],[1,1],[2,1],[1,2],[1,2],[2,2],[1,3],[1,3],[2,3]]

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

    Isn't my output correct?


  • 0
    D

    Actually your output is wrong


  • 0
    M

    @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
    M

    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.