Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum...
分类:
其他好文 时间:
2014-06-22 20:59:24
阅读次数:
227
spiral grid
时间限制:2000 ms | 内存限制:65535 KB
难度:4
描述Xiaod has recently discovered the grid named "spiral grid".
Construct the grid like the following figure. (The grid is actually infinite...
分类:
其他好文 时间:
2014-06-22 20:54:07
阅读次数:
185
1. 登录服务器查看后,发现router的日志很大,有超过100G,导致无法打开, 决定,先重启router服务,删除日志。
2. 重启完毕router后,日志又出现了猛刷的情况,进入查看,显示
2014-06-19T20:08:25.170+0800[conn8956] end connection 10.4.1.101:7389(100 connections now...
分类:
数据库 时间:
2014-06-22 20:35:45
阅读次数:
243
今天是2014-06-18,在复制数据的时候出现如下错误:
RMAN-05537: DUPLICATE without TARGET connection when auxiliary instance is started with spfile cannot use SPFILE clause
操作过程如下:
[oracle@dg1 dbs]$ rman target sys/root@...
分类:
其他好文 时间:
2014-06-22 19:13:14
阅读次数:
306
Dynamic Rankings
Time Limit: 10 Seconds
Memory Limit: 32768 KB
The Company Dynamic Rankings has developed a new kind of computer that is no longer satisfied with the query like to simply...
分类:
其他好文 时间:
2014-06-22 17:04:16
阅读次数:
182
Spring 绑定 Hibernate.
一.
1. Spring 如何处理propagation=Propagation.SUPPORTS?
2. Spring 何时生成HibernateSession ?
3. propagation=Propagation.SUPPORTS和propagation=Propagation.require对生成Session有何影响 ?
4...
分类:
数据库 时间:
2014-06-22 15:47:24
阅读次数:
274
CollectionhasneithergenerictypeorOneToMany.targetEntity()defined在一对多双向关联关系里,Set如果用泛型,就需要在@OneToMany指明targetEntity多方的实体类,要不就不要用泛型。
分类:
Web程序 时间:
2014-06-22 10:09:21
阅读次数:
356
As we all know,a thread is a separate process on your computer.you can run multiple threads all at the same time.
multi-threaded code has the disadvantage of becoming quite complex very quickly,altho...
分类:
其他好文 时间:
2014-06-22 07:25:06
阅读次数:
244
nginx使用了间接回调机制,结合upstream机制的使用来说明一下,首先明确几个事实:
1)其实ngxin和下游客户端的连接使用的是ngx_http_connection_t,每个连接对应着一个读事件、一个写事件,epoll监听队列监听的是事件(ngx_event_t),但是事件的data字段对应于这个事件所属的连接(ngx-connection_t)。但是nginx和上游服务器之间的连接使...
分类:
其他好文 时间:
2014-06-22 06:25:18
阅读次数:
206
????用hibernate访问sybase时遇见的异常。
Could not obtain connection metadata : ASE is now using a multi-byte character set, and the TEXT character counts have not been re-calculated using this character set ...
分类:
系统相关 时间:
2014-06-22 06:19:49
阅读次数:
1188