错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Removing Duplicates

  • Roman Snytsar

摘要

Consider an integer array sorted in non-descending order. We need to remove duplicate elements in place, leaving only unique elements. The original order of elements must be preserved. Return the number of unique elements in the array.