accepted one line python solution


  • 0
    A

    class Solution(object):
    def removeDuplicates(self, nums):
    """
    :type nums: List[int]
    :rtype: int
    """
    nums[:]=sorted(set(nums))


Log in to reply
 

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