Movatterモバイル変換


[0]ホーム

URL:


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

Commitf2fa69f

Browse files
committed
feat: update 021
1 parentb20263c commitf2fa69f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

‎note/021/README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22

33
##Description
44

5-
Given a sorted array, remove the duplicates in place such that each element appear only*once* and return the new length.
6-
7-
Do not allocate extra space for another array, you must do this in place with constant memory.
8-
9-
For example,
10-
Given input array*nums* =`[1,1,2]`,
11-
12-
Your function should return length =`2`, with the first two elements of*nums* being`1` and`2` respectively. It doesn't matter what you leave beyond the new length.
5+
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
136

147
**Tags:** Linked List
158

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp