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 ...
分类:
其他好文 时间:
2014-05-17 11:30:21
阅读次数:
247
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx512m
-XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m -Xverify:none
-da注意:很多说要加上参数-server,即set ...
分类:
其他好文 时间:
2014-05-17 02:12:34
阅读次数:
296
一. AWR说明Oracle
10g之前对数据库做性能检测使用statspack工具。关于statspack的说明,参考我的Blog:statspack安装使用和report分析http://space.itpub.net/28673746/viewspace-757339Oracle
Databa...
分类:
数据库 时间:
2014-05-16 20:34:39
阅读次数:
610
题目: Sort a linked list inO(nlogn) time using
constant space complexity.解题思路: 复杂度为O(n* logn)
的排序算法有:快速排序、堆排序、归并排序。对于链表这种数据结构,使用归并排序比较靠谱。递归代码如下:代码: /...
分类:
其他好文 时间:
2014-05-16 05:49:04
阅读次数:
266
题目: Given a linked list, determine if it has a
cycle in it. Follow up: Can you solve it without using extra space?解题思路:
使用快慢指针,快指针每次走两步,慢指针每次走一步...
分类:
其他好文 时间:
2014-05-16 05:19:21
阅读次数:
271
一、RS232通信协议1、概念
个人计算机上的通讯接口之一,由电子工业协会(Electronic Industries Association,EIA) 所制定的异步传输标准接口。
2、电气特性 逻辑1(MARK): -3V~-15V 逻辑0(SPACE): +3~+15V3、接...
分类:
其他好文 时间:
2014-05-15 16:23:19
阅读次数:
404
Determine whether an integer is a palindrome. Do this without extra space....
分类:
其他好文 时间:
2014-05-15 14:38:59
阅读次数:
278
一、Java内存组成组成图堆(Heap)运行时数据区域,所有类实例和数组的内存均从此处分配。Java虚拟机启动时创建。对象的堆内存由称为垃圾回收器的自动内存管理系统回收。组成
组成 详解Young Generation即图中的Eden + From Space + To Space1.Eden存放新...
分类:
编程语言 时间:
2014-05-15 02:07:43
阅读次数:
320
【题目】
Determine whether an integer is a palindrome. Do this without extra space.
【题意】
题意判断一个整数是否是回文数
注意一下几点:
1. 不能用额外的空间
2. 负数不是回文数...
分类:
其他好文 时间:
2014-05-14 20:31:10
阅读次数:
298
The NASA Space Center, Houston, is less than
200 miles from San Antonio, Texas (the site of the ACM Finals this year). This
is the place where the ast...
分类:
其他好文 时间:
2014-05-13 16:52:45
阅读次数:
490