摘要: 这道题答案采用了双指针,太优雅了。 先看下代码: 1 class Solution { 2 public int removeDuplicates(int[] nums) { 3 if (nums.length == 0) return 0; 4 int i = 0; 5 for (int j = 阅读全文
posted @ 2020-08-08 11:10 卑微的孤独患者 阅读(157) 评论(0) 推荐(0)