Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

remove duplicates from sorted array

def remove_duplicate(nums: [int]) -> int:
  nums[:] = sorted(set(nums))
  return len(nums)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #remove #duplicates #sorted #array
ADD COMMENT
Topic
Name
3+8 =