题目:https://leetcode.com/problems/remove-duplicates-from-sorted-array/
tips:
事先判断i是否为0,然后处理pre。
vector删除元素,unsigned int size的溢出。
如果初始条件不满足,for不进入循环。
题目:https://leetcode.com/problems/remove-duplicates-from-sorted-array/
tips:
事先判断i是否为0,然后处理pre。
vector删除元素,unsigned int size的溢出。
如果初始条件不满足,for不进入循环。