摘要: 自己的写法,不想评价 用到了双指针和冒泡的思想,时间复杂度有点慢O(n^2),空间复杂度很行。 class Solution { public int removeDuplicates (int[] nums) { for (int i=0; i<nums.length-1; i++) { if ( 阅读全文
posted @ 2020-11-07 19:27 Vingkin 阅读(68) 评论(0) 推荐(0)