Java老A这本书写了很久,昨天终于开始在china-pub上开始预售了,其它网站可能会慢一点,不过既然叫预售,就肯定还没到货。有兴趣的人可以去看看哈(后续其它网站地址也会在这里公开):http://search.china-pub.com/s/?key1=java%cc%d8%d6%d6%b1%f8&type=&pz=1关于本书内容,请参考:http://blog.csdn.net/xieyuo...
分类:
编程语言 时间:
2014-08-16 15:10:40
阅读次数:
428
Convert Sorted List to Binary Search TreeGiven a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST....
分类:
其他好文 时间:
2014-08-16 12:19:20
阅读次数:
227
Unique Binary Search TreesGivenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a to...
分类:
其他好文 时间:
2014-08-16 00:59:29
阅读次数:
178
Unique Binary Search Trees IIGivenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your pr...
分类:
其他好文 时间:
2014-08-15 23:44:29
阅读次数:
280
Recover Binary Search Tree
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 pretty s...
分类:
其他好文 时间:
2014-08-15 19:39:39
阅读次数:
222
Keywords Search
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768
K (Java/Others)
Problem Description
...
分类:
其他好文 时间:
2014-08-15 14:36:48
阅读次数:
201
http://search.csdn.net/CSDN搜索,CSDN还是有非常多的编程资源的,用它的搜索能搜出不少东西。代码类别也比较全面。http://snippets.org/简单实用的代码收集网站,强力推荐。比如你要找个DES加密,要找个数据压缩,找个INI文件操作的C代码等,均能手到擒来。h...
分类:
Web程序 时间:
2014-08-15 14:19:58
阅读次数:
250
第一种方法:function GetQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg)...
分类:
Web程序 时间:
2014-08-15 14:17:38
阅读次数:
254
ldapsearch 參数表 下表描写叙述能够用于 ldapsearch 的区分大写和小写的參数。參数用途 -?打印关于使用 ldapsearch 的帮助。 -a deref指定别名反向引用。请输入 never、always、search 或 find。假设不使用此參数,缺省为 never。 -A....
分类:
其他好文 时间:
2014-08-15 14:16:38
阅读次数:
208
~~~~
果然用map暴力直接超时。原来要用hash,第一次写hash,真是个好玩的东西。
题目链接:http://poj.org/problem?id=1200
注意:1.题目说文本是由字符组成的,所以要用ascll码作为下标。
2.hash数组要开大点,否则RE。
#include
#include
#include
#include
#include
#define N 1...
分类:
其他好文 时间:
2014-08-15 08:17:47
阅读次数:
233