Leetcode 25. Reverse Nodes in k-Group

题目描述:就是在前一题翻转2个链表节点的题目上变成翻转k个位置。 题目链接:Leetcode 25. Reverse Nodes in k-Group Example: Given this linked list: 1->2->3->4->5 For k = 2, you should return: 2->1->4->3->5 For k = 3, you should return:
相关文章
相关标签/搜索