LeetCode-26-Remove Duplicates from Sorted Array

class Solution(object): def removeDuplicates(self, nums): """ :type nums: List[int] :rtype: int """ if nums==[]:return 0 nums.sort() ans=1
相關文章
相關標籤/搜索