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

Commitc58b3bb

Browse files
refactor 143
1 parente01318a commitc58b3bb

File tree

1 file changed

+0
-11
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-11
lines changed

‎src/main/java/com/fishercoder/solutions/_143.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@
22

33
importcom.fishercoder.common.classes.ListNode;
44

5-
/**
6-
* 143. Reorder List
7-
*
8-
* Given a singly linked list L: L0→L1→…→Ln-1→Ln,
9-
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
10-
11-
You must do this in-place without altering the nodes' values.
12-
13-
For example,
14-
Given {1,2,3,4}, reorder it to {1,4,2,3}.
15-
*/
165
publicclass_143 {
176
publicstaticclassSolution1 {
187
publicvoidreorderList(ListNodehead) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp