错误: "java.lang.ArrayIndexOutOfBoundsException: length=1; index=1"本文地址:http://blog.csdn.net/caroline_wendy/article/details/24464947Java中, 错误: "java.lan...
分类:
编程语言 时间:
2014-06-15 23:49:03
阅读次数:
511
Linux下编译安装log4cxx一个项目的服务器端在Linux平台下,用到了开源日志库log4cxx,这个库是apache项目的一个子库。功能很不错。下面记录下它的编译和安装过程。log4cxx的官方下载地址是http://logging.apache.org/log4cxx/index.html...
分类:
系统相关 时间:
2014-06-15 23:39:19
阅读次数:
827
初识: "> My JSP 'index.jsp' starting page --> username 密码: 通过HTTP表单中的參数设置JavaBean的属性值 "> My JSP 'index.jsp'...
分类:
编程语言 时间:
2014-06-15 23:38:39
阅读次数:
332
${item_index?if_exists+1}//获取循环下标值,默认是从0开始的. ${item.userName?if_exists}
分类:
其他好文 时间:
2014-06-15 20:54:59
阅读次数:
346
1 index unique scan 效率最高,主键或唯一索引2 index fast full scan 读的最快,可以并行访问索引,但输出不按顺序3 index full scan 有顺序的输出,不能并行读索引。4 index range scan 在给定的区间查询5 index s...
分类:
其他好文 时间:
2014-06-15 19:41:17
阅读次数:
169
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-15 19:26:23
阅读次数:
207
Binary Number
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 1287 Accepted Submission(s): 807
Problem Description
For 2 non-negativ...
分类:
其他好文 时间:
2014-06-15 18:17:35
阅读次数:
204
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
此题和求二叉树的最短路径几乎一模一样。
public int...
分类:
其他好文 时间:
2014-06-15 16:36:40
阅读次数:
209
题目:
链接:点击打开链接
题意:
输入n个点,要求选m个点满足连接m个点的m-1条边权值和sum与点的权值和ans最小,即sum/ans最小,并输出所选的m个点,如果有多种情况就选第一个点最小的,如果第一个点也相同就选第二个点最小的........
求一个图中的一颗子树,使得Sum(edge weight)/Sum(point weight)最小~
数据...
分类:
其他好文 时间:
2014-06-14 07:05:34
阅读次数:
350
多级跳跃表是保存在tim文件中的。
tip是term index,tim是term dictionary。记忆方法是,p是pointer因此是term index。
这个类会保存多个level的last变量和cur变量,同时使用RAMOutputStream数组缓存不同级别跳跃表的内容,一个term的所有doc添加完后才写入tim文件。几个主要方法:
resetSkip:几个last变量重置...
分类:
其他好文 时间:
2014-06-14 06:36:07
阅读次数:
386