Make clear about how to handle the duplicated number


  • 1
    B

    It seems when the array has duplicated numbers, we should treat it as we first remove all the duplicates.

    Submission Result: Wrong Answer More Details 
    
    Input:
    [1,2,2,5,3,5]
    Output:
    3
    Expected:
    2
    

  • 1
    V

    @braydenCN The problem is vague, after seeing the failing tests, I was able to deduce that we need to consider only unique numbers.


Log in to reply
 

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