文章 2017-12-15 来自:开发者社区

[LeetCode] Odd Even Linked List 奇偶链表

Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes. You should try to do it in p....

文章 2017-12-13 来自:开发者社区

[LeetCode] Plus One Linked List 链表加一运算

Given a non-negative number represented as a singly linked list of digits, plus one to the number. The digits are stored such that the most significant digit is at the head of the list. Example: Inpu....

文章 2017-12-03 来自:开发者社区

[LeetCode] Reverse Linked List II 倒置链表之二

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 = 2 and n = 4, return ...

文章 2017-12-02 来自:开发者社区

[LeetCode] Palindrome Linked List 回文链表

Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space? 这道题让我们判断一个链表是否为回文链表,LeetCode中关于回文串的题共有六道,除了这道,其他的五道为Palindrome Number 验证回文数字, ...

文章 2016-01-18 来自:开发者社区

LeetCode 328 Odd Even Linked List(奇偶链表)(Linked List)(*)

版权声明:转载请联系本人,感谢配合!本站地址:http://blog.csdn.net/nomasp https://blog.csdn.net/NoMasp/article/details/50535947 翻译 给定一个单链表,将所有的奇节点归为一组,偶节点紧随其后。 请注意我们现在谈的是奇节点...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

算法编程

开发者社区在线编程频道官方技术圈。包含算法资源更新,周赛动态,每日一题互动。

+关注