List list = Arrays.asList(new Point(1, 5), new Point(2, 3),new Point(2, 8), new Point(9, 13));int sum = list.get(0).y - list.get(0).x,currenty=list.ge...
分类:
其他好文 时间:
2014-06-28 19:25:36
阅读次数:
183
A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any point ...
分类:
其他好文 时间:
2014-06-28 16:02:43
阅读次数:
214
1. Algrithom?Given an array of values, pick a value as a pivot value?Check each value against the pivot value and - bring each value higher than the p...
分类:
其他好文 时间:
2014-06-28 13:41:01
阅读次数:
201
PHP如何防止SQL注入及开发安全[php]function inject_check($sql_str) {$check=eregi('select|insert|update|delete|\'|\/\*|\*|\.\.\/|\.\/|union|into|load_file|outfile',...
分类:
数据库 时间:
2014-06-23 06:07:14
阅读次数:
317
一:sqoop增量导入的两种方式Incremental import arguments:ArgumentDescription--check-column (col)Specifies the column to be examined when determining which rows to...
分类:
数据库 时间:
2014-06-23 00:58:09
阅读次数:
345
相信大家对highchats这个图表控件并不陌生,最近在项目中用到它,但是某些字段需要显示为小数点,顾查找资料文档发现下面两个方式可以实现:初始化时候添加如下两个参数tooltip:{ formatter:function(){ return''+this.point.name+': '+Math....
分类:
其他好文 时间:
2014-06-23 00:54:47
阅读次数:
252
广义地说,Unity有2种光源。1.动态光源 2.Backed Lighting1.动态光源就是实时计算的。只要摆光源就可以了2.Backed Lighting提前处理好光照贴图。贴在物体上。Point: 角度无关紧要Directional: 位置无关紧要Spot: 角度和位置都有影响Area (B...
分类:
其他好文 时间:
2014-06-23 00:54:24
阅读次数:
258
题目:Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmet...
分类:
其他好文 时间:
2014-06-20 18:44:41
阅读次数:
279
view 生成HTML页面效果 Superadmin Teacher Student controller获得信息"roles"=>["2", "3"] #params[:roles]
分类:
其他好文 时间:
2014-06-20 18:38:15
阅读次数:
230
用正则表达式判断。如果你说的纯数字是指整数的话(不包含小数点),可以这样:function check(){var value = document.getElementById("inputId").value;var reg=/^[1-9]\d*$|^0$/; // 注意:故意限制了 032.....
分类:
其他好文 时间:
2014-06-20 15:58:50
阅读次数:
190