class Solution: def removeDuplicates(self, nums: List[int]) -> int: lst = list(set(nums)) lst.sort() for i in range(len(lst)): nums[i] = lst[i] return len(lst)