from typing import List


class Solution:

    def removeDuplicates(self, nums: List[int]) ->int:
        l = sorted(set(nums))
        nums.clear()
        nums.extends(l)
        return len(l)

93bd49e91cb66854463ce70302c2cb4d7b4f53a6
<mask token>

<mask token>


class Solution:
    <mask token>

<mask token>


class Solution:

    def removeDuplicates(self, nums: List[int]) ->int:
        l = sorted(set(nums))
        nums.clear()
        nums.extends(l)
        return len(l)

from typing import List


class Solution:

    def removeDuplicates(self, nums: List[int]) ->int:
        l = sorted(set(nums))
        nums.clear()
        nums.extends(l)
        return len(l)
