Could anybody share a C solution?


  • 1
    S

    Thanks!
    Whatever I return,
    It shows that what I returned is [],
    I just don't know why.

    And what confuses me very much is that the parameter *returnSize is 0...


  • 0

    You need to write returnSize, so that the judge knows how large your array is. That's why you get a pointer to it.


Log in to reply
 

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