码迷,mamicode.com
首页 >  
搜索关键字:space    ( 18273个结果
ubuntu安装octave的小坑
出现了以下情况:After this operation, 163 MB of additional disk space will be used.Do you want to continue? [Y/n] Yperl: warning: Setting locale failed.perl: ...
分类:系统相关   时间:2015-03-29 20:45:21    阅读次数:847
JVM GC笔记
堆分区:所有new的对象都会存放在堆中 > 新生代(Young Generation):存放生命周期短的对象,具体还分为Eden和Survivor两个区,其中Survivor分为From Space和To Space; > 旧生代(Old Generation):存放生命周期长的对象 > 持久...
分类:其他好文   时间:2015-03-29 17:57:12    阅读次数:98
LeetCode First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm should run in O(n) time and uses constant space.思路分析:...
分类:其他好文   时间:2015-03-29 13:39:00    阅读次数:106
Sort List
https://leetcode.com/problems/sort-list/Sort a linked list inO(nlogn) time using constant space complexity.解题思路:常见的O(nlogn)算法,快速排序、归并排序,堆排序。大概讲讲优缺点,在数...
分类:其他好文   时间:2015-03-28 21:32:10    阅读次数:114
Length of Last Word -- leetcode
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is defi...
分类:其他好文   时间:2015-03-28 15:46:51    阅读次数:131
LeetCode Unique Paths II
Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respectively in the ...
分类:其他好文   时间:2015-03-28 01:17:37    阅读次数:137
Q5: Remove Duplicates from Sorted Array
问题描述:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space ...
分类:其他好文   时间:2015-03-21 21:16:20    阅读次数:118
Q3: Linked List Cycle II
问题描述Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space...
分类:其他好文   时间:2015-03-21 15:32:34    阅读次数:155
【LeetCode】Recover Binary Search Tree 解题报告
【题目】 Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straight forward. Could...
分类:其他好文   时间:2015-03-21 12:42:54    阅读次数:129
Maximum Gap
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:其他好文   时间:2015-03-21 12:39:00    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!