
시간 복잡도 : O(nlogn)
class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
s = set(nums)#O(n)
k = len(s) #(2n)
a = list(s) #(3n)
h = sorted(a) #(nlogn)
nums[:] = h #(4n)
return k