原文:[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 listkat a time and return its modified list. If the number of nodes is not a multip ...

2014-06-13 12:06 0 2741 推薦指數:

查看詳情

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 ...

Thu Jul 24 12:31:00 CST 2014 0 2630
[leetcode]Reverse Integer @ Python

原題地址:https://oj.leetcode.com/problems/reverse-integer/ 題意: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return ...

Mon Jun 09 21:35:00 CST 2014 0 4530
[leetcode]Swap Nodes in Pairs @ Python

原題地址:http://oj.leetcode.com/problems/swap-nodes-in-pairs/ 題意:將鏈表中的節點兩兩交換。Given 1->2->3->4, you should return the list as 2->1->4-> ...

Thu May 01 02:10:00 CST 2014 0 2908
[leetcode]Reverse Words in a String @ Python

原題地址:https://oj.leetcode.com/problems/reverse-words-in-a-string/ 題意: Given an input string, reverse the string word by word. For example,Given s ...

Fri May 30 17:27:00 CST 2014 0 2653
[leetcode]Reverse Linked List II @ Python

原題地址:https://oj.leetcode.com/problems/reverse-linked-list-ii/ 題意: Reverse a linked list from position m to n. Do it in-place and in one-pass. ...

Thu Jun 12 18:05:00 CST 2014 0 3197
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM