80. Remove Duplicates from Sorted Array II

class Solution(object):
    def removeDuplicates(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """
        
        n=len(nums)
        if n<3:
            return 
            
        count=1
        pointer=0
        while pointer

你可能感兴趣的:(80. Remove Duplicates from Sorted Array II)