Skip to content

Commit 62e453b

Browse files
authored
Update Readme.md
1 parent 0547f99 commit 62e453b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Linked_List/143.Reorder-List/Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
此题不难,但是比较繁琐,需要耐心理清思路,细致地操作指针。
44

5-
其中对于一段链表进行逆序操作的基本算法是:不断从源链表首摘下一个节点(同时指针后移),拼接到目标链表首(同时指针前移)
5+
本题的算法是,先求得整体的长度count。于是我们将整个链表分割为两部分:前者有(count+1)/2个节点;后者再进行反转链表的操作
66

7-
得到两段链表之后,交替摘取节点拼接到新链表上。
7+
得到这两段链表之后,交替摘取节点拼接到新链表上。
88

99

10-
[Leetcode Link](https://leetcode.com/problems/reorder-list)
10+
[Leetcode Link](https://leetcode.com/problems/reorder-list)

0 commit comments

Comments
 (0)