描述
一棵树上有n个节点,编号分别为1到n,每个节点都有一个权值w。我们将以下面的形式来要求你对这棵树完成一些操作: I. CHANGE u t : 把结点u的权值改为t II. QMAX u v: 询问从点u到点v的路径上的节点的最大权值 III. QSUM u v: 询问从点u到点v的路径上的节点的权值和. 注意:从点u到点v的路径上的节点包括u和v本身. 分析
学了树链剖...
分类:
其他好文 时间:
2015-02-26 14:56:11
阅读次数:
98
1.整合jar包:a)SSH整合包:50个;(目前)b)JBPM:40个;(目前)c)JBPM核心包使用自己经过修改后的:i.jbpm4.2.jar2.整合配置文件:a)jbpm.cfg.xmlb)jbpm.hibernate.cfg.xmli.本质就是Hibernate的配置文件;ii.不过整合Spring后,被Spring代理了;iii.且Spring中使用的是包扫..
分类:
编程语言 时间:
2015-02-15 13:46:02
阅读次数:
298
1.流程定义节点a)<processname=””xmlns=””key=””,version=””>b)name:i.流程定义的名称;c)key:i.流程关键字(键值);ii.如果默认不写key值,就是name值;iii.在程序通过key值去启动一个流程实例;d)version:i.必须在数据库中存入指定版本号;ii.如果版本之前..
分类:
其他好文 时间:
2015-02-15 13:44:26
阅读次数:
281
没什么好说的。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include10 #include11 #include12 #include13 #includ...
分类:
编程语言 时间:
2015-02-14 01:00:03
阅读次数:
246
1. 先找到一块Intel公司的奔三(Pentium III)Coppermine芯片,主频800MHZ,生产于2000年。(我查了一下,网上的报价现在是15~30元人民币/块。)下面是这块CPU的正面。你可以看到它分成两部分,周围是一圈绿色的电路板,中间那块蓝色的就是芯片。(本文所有图片,都可以....
分类:
其他好文 时间:
2015-02-12 18:18:16
阅读次数:
244
本文是在学习中的总结,欢迎转载但请注明出处:http://write.blog.csdn.net/postedit/43740415
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algori...
分类:
其他好文 时间:
2015-02-12 09:24:59
阅读次数:
183
Design and implement a TwoSum class. It should support the following operations:addandfind.add- Add the number to an internal data structure.find- Fin...
分类:
其他好文 时间:
2015-02-10 15:17:36
阅读次数:
235
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2015-02-09 18:14:14
阅读次数:
135
servlet的生命周期
a) 载入
i. 实例化
ii. 元素,表名servlet被加载的,顺序从小到大加载
b) 初始化
i. 第一次请求的时候被初始化
c) 执行
i. service()方法
ii. 每个请求,new一个新的线程,调用一次service—>super.service—>doGet,doPost
iii. 不要在servlet中设置成员变量(多个请求线程共享...
分类:
其他好文 时间:
2015-02-08 09:07:10
阅读次数:
127
机器学习Machine Learning - Andrew NG
courses学习笔记
矩阵和向量及其表示介绍
what are matrices矩阵
matrix is just another way for saying, is a 2D or a two dimensional array.
dimension of the matrix
is going to be ...
分类:
系统相关 时间:
2015-02-04 20:26:35
阅读次数:
197