Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

remove duplicates from sorted array

def remove_duplicate(nums: [int]) -> int:
  nums[:] = sorted(set(nums))
  return len(nums)
Source by leetcode.com #
 
PREVIOUS NEXT
Tagged: #remove #duplicates #sorted #array
ADD COMMENT
Topic
Name
9+6 =