码迷,mamicode.com
首页 >  
搜索关键字:heap space    ( 20988个结果
判断链表是否有环
Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 关键点:1)判断链表是否有环。 2)一个小坑在判断root和root的next是否为空上。 3)可以看为追及问题。最关键的坑在判断快走(每次走2步的节点),走1步会...
分类:其他好文   时间:2014-10-23 00:03:10    阅读次数:276
SQL Server 向堆表中插入数据的过程
堆表中 IAM 记录着的数据页,表的各个数据页之间没有联系。也就是说一个页面它不会知道自己的前一页是谁,也不知道自己的后一页是谁。插入数据时先找到IAM页,再由pfs(page free space)决定插入到哪里!
分类:数据库   时间:2014-10-22 21:34:53    阅读次数:229
JVM虚拟机选项:Xms Xmx PermSize MaxPermSize区别(转)
java虽然是自动回收内存,但是应用程序,尤其服务器程序最好根据业务情况指明内存分配限制。否则可能导致应用程序宕掉。举例说明含义:-Xms128m表示JVM Heap(堆内存)最小尺寸128MB,初始分配-Xmx512m表示JVM Heap(堆内存)最大允许的尺寸256MB,按需分配。说明:如果-X...
分类:其他好文   时间:2014-10-22 20:13:01    阅读次数:278
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 for a...
分类:其他好文   时间:2014-10-22 19:46:16    阅读次数:220
netbean快捷键
1、Application应用程序的参数args的设置,在Build->Set Main Projects Configuration 2、程序运行快捷键F6 3、@Deprecated 4、代码自动完成Ctrl+Space,利用这个可以添加类的构造函数 5、变量统一修改Ctrl+R,取消用esc ...
分类:Web程序   时间:2014-10-22 18:08:26    阅读次数:200
[002] delete_duplication_of_linked_list
[Description] Given a unsort linked list, delete all the duplication from them, no temporary space permission.[Thought] Set two points, from head to t...
分类:其他好文   时间:2014-10-22 17:17:58    阅读次数:120
Java GC 垃圾回收器的类型小结
JVM GC 垃圾回收器类型小结 JVM的垃圾回收器大致分为四种类型: 1、串行垃圾回收器 2、并行垃圾回收器 3、并发标记扫描垃圾回收器 4、G1垃圾回收器 1、串行垃圾回收器 串行垃圾回收器在进行垃圾回收时,它会持有所有应用程序的线程,冻结所有应用程序线程,使用单个垃圾回收线程来进行垃圾回收工作。 串行垃圾回收器是为单线程环境而设计的,如果你的程序不需要多线程,启动串行...
分类:编程语言   时间:2014-10-22 14:34:15    阅读次数:291
LeetCode 148 Sort List
Sort a linked list in O(n log n) time using constant space complexity. 思路:要想时间复杂度达到O(n log n) ,那么有两种,一种是合并排序,另一种是快速排序,而要想空间复杂度为常数,那么只能使用递归,本人使用的是递归的合并排序,代码如下: /** * Definition for s...
分类:其他好文   时间:2014-10-22 12:55:55    阅读次数:200
oracle常用函数归纳
SQL中的单记录函数1.ASCII返回与指定的字符对应的十进制数(注:是字符而非字符串);SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual;A A ZERO SPACE--------- ...
分类:数据库   时间:2014-10-22 12:24:45    阅读次数:273
屏幕空间反射
屏幕空间反射(Scene Space Reflection,SSR)又叫实时局部反射(Realtime Local Reflection,RLR),最早见于2011年Crytek在Siggraph的Course《Secrets of CryENGINE 3 Graphics Technology》....
分类:其他好文   时间:2014-10-21 23:10:35    阅读次数:243
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!