What if there are duplicate inputs?


  • 0
    G

    For example:
    3
    3
    [[0,1],[0,1],[0,1],[0,1]]

    The expected answer given by leetcode is [1,2,3,4],but I think the result should be [1,1,1,1]


Log in to reply
 

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