码迷,mamicode.com
首页 >  
搜索关键字:linked_list    ( 3784个结果
25. Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to ...
分类:其他好文   时间:2019-02-02 10:16:26    阅读次数:160
LeetCode-86-Longest Palindromic Characters
算法描述: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserv ...
分类:其他好文   时间:2019-02-01 14:19:34    阅读次数:158
LeetCode-5-Longest Palindromic Characters
算法描述: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Example 1: Examp ...
分类:其他好文   时间:2019-02-01 14:12:17    阅读次数:161
206. Reverse Linked List
Reverse a singly linked list. Example: Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL Follow up: A linked list can be reversed either iterativ ...
分类:其他好文   时间:2019-02-01 14:11:00    阅读次数:184
#Leetcode# 148. Sort List
https://leetcode.com/problems/sort-list/ Sort a linked list in O(n log n) time using constant space complexity. Example 1: Example 2: 代码: 归并排序 学到了 FHF ...
分类:其他好文   时间:2019-01-30 16:06:42    阅读次数:125
LeetCode-61-Rotate List
算法描述: Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Example 2: 解题思路:单链表的题目,画出图就可以解决了。注意边界条件,以及k值大 ...
分类:其他好文   时间:2019-01-30 15:56:54    阅读次数:112
24. Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. Example: Note: Your algorithm should use only constant extra space. You may no ...
分类:其他好文   时间:2019-01-30 13:05:10    阅读次数:123
19.1.30 [LeetCode 24] Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to ...
分类:其他好文   时间:2019-01-30 11:15:50    阅读次数:142
1074 Reversing Linked List (25 分)
1074 Reversing Linked List (25 分) Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For e ...
分类:其他好文   时间:2019-01-28 01:05:58    阅读次数:118
1052 Linked List Sorting (25 分)
1052 Linked List Sorting (25 分) A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each st ...
分类:其他好文   时间:2019-01-27 21:45:35    阅读次数:142
3784条   上一页 1 ... 47 48 49 50 51 ... 379 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!