Skip to content

Commit a5eba9d

Browse files
committed
Runtime: 1 ms (Top 87.02%) | Memory: 45 MB (Top 24.14%)
1 parent 5fa356a commit a5eba9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Runtime: 1 ms (Top 87.02%) | Memory: 45 MB (Top 24.14%)
2+
13
class Solution {
24
public int removeDuplicates(int[] nums) {
35
int count = 2,len =nums.length ;
@@ -6,7 +8,7 @@ public int removeDuplicates(int[] nums) {
68
nums[count]=nums[i];
79
count++;
810
}
9-
}
11+
}
1012
return count;
1113
}
12-
}
14+
}

0 commit comments

Comments
 (0)