80. Remove Duplicates from Sorted Array II

public class Solution {
    public int removeDuplicates(int[] nums) {
        if(nums.length<=2) return nums.length;
        int count=2;
        for(int i=2;i

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