Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1e21654

Browse files
feat: add solutions to lc problem: No.0138 (doocs#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‎

Lines changed: 0 additions & 22 deletions
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‎

Lines changed: 0 additions & 22 deletions
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‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /