80. Remove Duplicates from Sorted Array II

class Solution {
    public int removeDuplicates(int[] nums) {
        //用k表示存储元素的当前指针        
        int k=0;
        //用j表示重复次数,
        int j=0;
        for(int i=1;i

你可能感兴趣的:(80. Remove Duplicates from Sorted Array II)