问题网址:https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/
问题描述:
给定一个有序数组,删除重复内容,使每个元素只出现一次,并返回新的长度。
不要为其他数组分配额外的空间,您必须通过在O(1)额外的内存中就地修改输入数组来实现这一点。
问题例子:
Given nums = [1,1,2],
Your function should return length = 2, with the first two elements of nums being 1 and</