//list.h //这样定义的链表具有通用性 #ifndef list_h #define list_h #include <stdio.h> #include <stdlib.h> /** structure for linked list elements. */ typedef struct ...
分类:
编程语言 时间:
2019-02-13 14:26:19
阅读次数:
128
"174. Remove Nth Node From End of List" / "19. Remove Nth Node From End of List" 本题难度: Easy/Medium Topic: Linked List Description Given a linked list, ...
分类:
其他好文 时间:
2019-02-12 09:14:04
阅读次数:
182
题目要求 Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the second ...
分类:
其他好文 时间:
2019-02-11 10:46:05
阅读次数:
178
https://leetcode.com/tag/linked-list/ ...
分类:
其他好文 时间:
2019-02-09 22:35:10
阅读次数:
185
https://leetcode.com/problems/insertion-sort-list/ Sort a linked list using insertion sort. A graphical example of insertion sort. The partial sorted ...
分类:
其他好文 时间:
2019-02-09 18:01:45
阅读次数:
204
Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Example 2: 题意 把链表循环右移k个 题解 1 class Solution { 2 pub ...
分类:
其他好文 时间:
2019-02-09 17:54:38
阅读次数:
158
https://leetcode.com/problems/split-linked-list-in-parts/ Given a (singly) linked list with head node root, write a function to split the linked list ...
分类:
其他好文 时间:
2019-02-09 12:05:21
阅读次数:
114
https://leetcode.com/problems/rotate-list/ Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Example ...
分类:
其他好文 时间:
2019-02-09 11:57:48
阅读次数:
138
算法描述: Sort a linked list in O(n log n) time using constant space complexity. Example 1: Example 2: 解题思路:时间复杂度O(nlogn)。写了快排感觉很奇怪,看了其他人答案,发现都是归并排序。 快排代码 ...
分类:
其他好文 时间:
2019-02-06 22:41:27
阅读次数:
221
算法描述: Sort a linked list using insertion sort. A graphical example of insertion sort. The partial sorted list (black) initially contains only the firs ...
分类:
其他好文 时间:
2019-02-06 21:16:22
阅读次数:
174