Sort a linked list in O(n log n) time using constant space complexity....
分类:
编程语言 时间:
2014-11-26 16:37:32
阅读次数:
172
leetcode Min StackDesign a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stac...
分类:
其他好文 时间:
2014-11-25 12:31:30
阅读次数:
129
【扩展知识5】谈const有关的那些事
扩展目录:
1. const修饰变量
2. conts 修饰参数
3. const修饰函数返回值
( 1 )const的目的
const是constant的缩写,是恒定不变的意思。但在C语言中修饰的变量是只读的变量,其值在编译时不能被使用,因为编译器在编译时不知道其的存储的内容。
推...
分类:
其他好文 时间:
2014-11-25 09:18:28
阅读次数:
159
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-11-24 10:10:53
阅读次数:
155
Sort a linked list in O(n log n)
time using constant space complexity.
大家看完题目估计跟我一样啦。。。都在想哪些是nlogn啊~快速排序、归并排序、堆排序!然后开始愁,这些东西变成list了可怎么办啊。。。
可是我深深地记得在CMU的时候老师告诉我,java现在自带的Arrays.sort用的是快排,然后我就想,那么…...
分类:
编程语言 时间:
2014-11-24 10:10:04
阅读次数:
170
转:http://blog.csdn.net/qinyu0109/article/details/7257332struts配置文件的constant的name值在struts2-core-2.1.6.jar --> org.apache.struts2 -->default.properties里...
分类:
其他好文 时间:
2014-11-24 08:40:10
阅读次数:
179
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2014-11-23 23:08:31
阅读次数:
339
Moving Data: IA32 movx Source, Dest x is one of {b(1-byte), w(2-byte), l(4-byte)} Operand Types Immediate: Constant integer data Example: $0x400, $-53...
分类:
其他好文 时间:
2014-11-22 18:51:31
阅读次数:
201
-- 增加行
DECLARE
v_row_id VARCHAR2(1000);
v_line_number number;
g_user_id CONSTANT NUMBER := fnd_global.user_id;
g_login_id CONSTANT NUMBER := fnd_global.conc_login_id;
g_reque...
分类:
其他好文 时间:
2014-11-22 17:28:57
阅读次数:
174
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2014-11-22 07:04:11
阅读次数:
193