1.问题描述 Sort a linked list in O(n log n) time using constant space complexity.2.翻译 在固定的空间复杂度中使用O(nlog n)的时间复杂度进行链表的排序。 3.思路分析 提起排序,我们脑海中会迅速出现各种排序算法...
分类:
其他好文 时间:
2014-12-09 21:06:36
阅读次数:
181
1.在太空上会哭吗。
Clayton C是美国的退役宇航员。他曾经在太空中哭过好几次,而且感觉就跟地球上一样。
Clayton
C. Anderson, US
Astronaut, Retired
I cried in space several times... due to some very emotional circumstances. I speak of...
分类:
其他好文 时间:
2014-12-09 19:45:23
阅读次数:
184
Eclipse 报java.lang.OutOfMemoryError: PermGen space错
分类:
编程语言 时间:
2014-12-09 19:06:31
阅读次数:
171
今日leetcode链表题全制霸原题地址:https://oj.leetcode.com/problems/sort-list/题目内容:Sort ListSort a linked list inO(nlogn) time using constant space complexity.方法:题目...
分类:
其他好文 时间:
2014-12-09 17:19:38
阅读次数:
162
在linux 平台如何配置hugepages
名词解释:
memlock - max locked-in-memory address space (KB)
1. 配置 /etc/security/limits.conf
memlock 参数
memlock 略小于物理内存 大于SGA ,假设物理内存为64G 可以这么配置
vi
/etc/sec...
分类:
其他好文 时间:
2014-12-09 00:36:30
阅读次数:
238
点击打开链接
Sky Code
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 1562
Accepted: 478
Description
Stancu likes space travels but he is a poor software...
分类:
其他好文 时间:
2014-12-08 23:08:09
阅读次数:
185
热退出tab--space 区分缩进线相同单词自动高亮-->字符串匹配-->快速选中代码自动补全ctrl+z 撤销 ctrl+y 恢复撤销ctrl+p文件切换ctrl+g任意行切换ctrl+r函数切换ctrl+Enter 光标后插入行Ctrl+Shift+Enter 光标前插入行ctrl+/ 注释、...
分类:
其他好文 时间:
2014-12-08 22:46:18
阅读次数:
235
在一些规模稍大的应用中,Java虚拟机(JVM)的内存设置尤为重要,想在项目中取得好的效率,GC(垃圾回收)的设置是第一步。 PermGen space:全称是Permanent Generation space.就是说是永久保存的区域,用于存放Class和Meta信息,Class在被Load的时候...
分类:
编程语言 时间:
2014-12-08 22:38:30
阅读次数:
207
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. Y...
分类:
其他好文 时间:
2014-12-08 19:38:48
阅读次数:
173
【题目】
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...
分类:
其他好文 时间:
2014-12-08 17:47:15
阅读次数:
167