I dont understand the sample test case.

  • 0

    The sample test case:
    [1, 2]

    I thought the first list is nums1. The first number is m, which is the number of valid elements in nums1. But how can m be greater than the length of nums1?

  • 0

    well,if you submit your codes, you will find that the array[1,2] changes to [1,2,0].

Log in to reply

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