jquery手册描述:data发送到服务器的数据。将自动转换为请求字符串格式。GET 请求中将附加在 URL 后。查看 processData 选项说明以禁止此自动转换。必须为 Key/Value 格式。如果为数组,jQuery 将自动为不同值对应同一个名称。如 {foo:["bar1", "bar...
分类:
Web程序 时间:
2014-06-25 19:17:01
阅读次数:
221
A bottom-up DP. To be honest, it is not easy to relate DP to this problem. Maybe, all "most"\"least" problems can be solved using DP..Reference:http:/...
分类:
Web程序 时间:
2014-06-25 18:39:32
阅读次数:
235
本题分两步:
1 使用Tarjan算法求所有最大子强连通图,并且标志出来
2 然后遍历这些节点看是否有出射的边,没有的顶点所在的子强连通图的所有点,都是解集。
Tarjan算法就是模板算法了。
这里使用一个数组和一个标识号,就可以记录这个顶点是属于哪个子强连通图的了。
然后使用DFS递归搜索所有点及其边,如果有边的另一个顶点不属于本子强连通图,那么就说明有出射的边。
有难度的题目:
...
分类:
其他好文 时间:
2014-06-25 07:19:31
阅读次数:
241
使用JavaAWT类可以很方便取得屏幕分辨率及可用屏幕大校01.DimensionscrSize=Toolkit.getDefaultToolkit().getScreenSize();此语句可取得屏幕实际大校如屏幕分辨率是1024*768时,scrSize.width的值为1024,scrSize.height的值为768。01.InsetsscrInsets=Toolkit.getDefaultToolk..
分类:
编程语言 时间:
2014-06-25 06:08:13
阅读次数:
270
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-06-24 18:56:54
阅读次数:
240
It is strange but interesting to see that all the toolbars in LibreOffice 4.2.4.2 have title bar displayed on Linux operating system (Debian Wheezy wi...
分类:
系统相关 时间:
2014-06-24 14:30:25
阅读次数:
303
Given a triangle, find the minimum path sum from top to bottom. Each step you may
move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],...
分类:
其他好文 时间:
2014-06-22 17:07:52
阅读次数:
166
3.4 依赖
3.4.1 依赖注入
依赖注入两种方式:基于构造器的DI、基于setter方法的DI。
3.4.1.1 基于构造器的DI
参数是引入对象,且之前不存在父-子类关系:
package x.y;
public class Foo {
public Foo(Bar bar, Baz baz) {
// ...
}
}
bean...
分类:
编程语言 时间:
2014-06-22 12:07:33
阅读次数:
243
默认的命名空间“ namespace="" ”, 根命名空间 “ namespace="/" ”。
,如果未指定命名空间,则命名空间默认为 “ namespace="" ”。
默认命名空间里的Action可以处理任何命名空间下的Action请求。例如,如果存在URL为/barspace/bar.action的请求,并且/barspace的命名空间下没有名为bar...
分类:
其他好文 时间:
2014-06-22 00:26:58
阅读次数:
153
依赖注入两种方式: 构造函数和属性
package x.y;
public class Foo {
public Foo(Bar bar, Baz baz) {
// ...
}
}
...
分类:
编程语言 时间:
2014-06-21 20:38:28
阅读次数:
216