算法编程
Heitu1994
这个作者很懒,什么都没留下…
展开
-
[LeetCode] Find All Numbers Disappeared in an Array 找出数组中所有消失的数字
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Find all the elements of [1, n] inclusive that do not appear in this array.Coul...转载 2018-07-28 23:45:38 · 160 阅读 · 0 评论 -
[LeetCode] 148. 排序链表
题目来源:148. 排序链表 在 O(n log n) 时间复杂度和常数级空间复杂度下,对链表进行排序。 示例1: 输入: 4->2->1->3 输出: 1->2->3->4示例2: 输入: -1->5->3->4->0 输出: -1->0->3->4->5思路:原创 2018-08-19 23:20:58 · 507 阅读 · 0 评论