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 ec74fda

Browse files
update q25
1 parent 5a7595b commit ec74fda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/链表操作/q25_k个一组翻转链表/Solution.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package 链表操作.q25_k个一组翻转链表;
22

3+
/**
4+
* 难点在于返回每个部分被修改的头节点,新建一个头节点的前置节点 o(n)
5+
*/
36
public class Solution {
47

58
public ListNode reverseKGroup(ListNode head, int k) {

0 commit comments

Comments
(0)

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