Expected answer is wrong?

  • -1

    Output: [8,1]
    Expected: [1,8]

    I think my output is right,but expected answer is [1,8]. why?

  • 0

    I met the same problem,so...
    I think that if l1 is 0,then return l2; if l2 is 0,then return l1;

Log in to reply

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