问题描述: 解题思路: 1.设定快慢指针 2.快指针遍历结束之前,若i指向的值和j指向的值相等,则跳过j 3.若不相等,则赋予i+1 具体代码: public int removeDuplicates(int[] nums) { if (nums.length == 0