原文:Reverse Nodes in k-Group leetcode java

题目: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left out nodes in the end should remain as it ...

2014-07-24 04:31 0 2630 推荐指数:

查看详情

[leetcode]Reverse Nodes in k-Group @ Python

原题地址:https://oj.leetcode.com/problems/reverse-nodes-in-k-group/ 题意: Given a linked list, reverse the nodes of a linked list k at a time and return ...

Fri Jun 13 20:06:00 CST 2014 0 2741
Reverse Integer leetcode java

题目: Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Have you thought ...

Sat Aug 02 16:12:00 CST 2014 0 3007
Swap Nodes in Pairs leetcode java

题目: Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list ...

Wed Jul 23 11:01:00 CST 2014 0 5479
Reverse Linked List II leetcode java

题目: Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m ...

Thu Jul 24 07:37:00 CST 2014 0 2573
[LeetCode] Swap Nodes in Pairs

Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2-> ...

Tue Nov 20 01:07:00 CST 2012 0 3051
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM