| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/feixiangcode/algorithm/master/Week_01/id_139/LeetCode_25_139.java | [Back] [Original] |
1
// : 2 ms, Reverse Nodes in k-GroupJava88.82%
// : 40 MB, Reverse Nodes in k-GroupJava46.14%
class Solution {
public ListNode reverseKGroup(ListNode head, int k) {
//
//k=1
if(head == null || head.next == null || k 40m
while(x
| Web Proxy Viewer | New URL | Original Page |