Skip to content

Commit 1e21654

Browse files
authored
feat: add solutions to lc problem: No.0138 (#3903)
No.0138.Copy List with Random Pointer
1 parent 0bb033f commit 1e21654

File tree

19 files changed

+567
-465
lines changed

19 files changed

+567
-465
lines changed

solution/0000-0099/0026.Remove Duplicates from Sorted Array/README.md

-22
Original file line numberDiff line numberDiff line change
@@ -250,26 +250,4 @@ class Solution {
250250

251251
<!-- solution:end -->
252252

253-
<!-- solution:start -->
254-
255-
### 方法二
256-
257-
<!-- tabs:start -->
258-
259-
#### C++
260-
261-
```cpp
262-
class Solution {
263-
public:
264-
int removeDuplicates(vector<int>& nums) {
265-
nums.erase(unique(nums.begin(), nums.end()), nums.end());
266-
return nums.size();
267-
}
268-
};
269-
```
270-
271-
<!-- tabs:end -->
272-
273-
<!-- solution:end -->
274-
275253
<!-- problem:end -->

solution/0000-0099/0026.Remove Duplicates from Sorted Array/README_EN.md

-22
Original file line numberDiff line numberDiff line change
@@ -251,26 +251,4 @@ class Solution {
251251

252252
<!-- solution:end -->
253253

254-
<!-- solution:start -->
255-
256-
### Solution 2
257-
258-
<!-- tabs:start -->
259-
260-
#### C++
261-
262-
```cpp
263-
class Solution {
264-
public:
265-
int removeDuplicates(vector<int>& nums) {
266-
nums.erase(unique(nums.begin(), nums.end()), nums.end());
267-
return nums.size();
268-
}
269-
};
270-
```
271-
272-
<!-- tabs:end -->
273-
274-
<!-- solution:end -->
275-
276254
<!-- problem:end -->

solution/0000-0099/0026.Remove Duplicates from Sorted Array/Solution2.cpp

-7
This file was deleted.

0 commit comments

Comments
 (0)