I am getting only 16/161 right where thr test case it is showing wrong , I tried on IDE which is working fine


  • 0
    N

    my solution is :
    def function(self,nums):

    k=set(nums)
    return len(k)
    

    I am getting only 16/161 right where thr test case it is showing wrong , I tried on IDE which is working fine.Will you guys plz give me a thought on this


  • 0
    F

    please read the question once more:
    Do not allocate extra space for another array, you must do this in place with constant memory.


  • 0
    K

    I have the same problem...


Log in to reply
 

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