码迷,mamicode.com
首页 >  
搜索关键字:constant    ( 1663个结果
对链表排序,时间开销O(nlogn), 空间开销O(1)
Sort a linked list in O(n log n) time using constant space complexity....
分类:编程语言   时间:2014-11-26 16:37:32    阅读次数:172
MinStack
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有关的那些事
【扩展知识5】谈const有关的那些事   扩展目录: 1.        const修饰变量 2.        conts 修饰参数 3.        const修饰函数返回值   ( 1 )const的目的  const是constant的缩写,是恒定不变的意思。但在C语言中修饰的变量是只读的变量,其值在编译时不能被使用,因为编译器在编译时不知道其的存储的内容。   推...
分类:其他好文   时间:2014-11-25 09:18:28    阅读次数:159
【Leetcode】Swap Nodes in Pairs in JAVA 难得的一次写对不带改的。。附赠测试程序like always
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
【Leetcode】Sort List in java,你绝对想不到我是怎么做的^^我写完过了我自己都觉得好jian~
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
struts xml文件的constant的配置
转: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
MinStack
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
【2014-11-22】《The Hardware/Software Interface》– Section 4
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
增加AP INVOICE 行&分配行
-- 增加行 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
Leetcode: Min Stack
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!