原题地址:https://oj.leetcode.com/problems/search-insert-position/题意:Given
a sorted array and a target value, return the index if the target is found. If
n...
分类:
编程语言 时间:
2014-06-11 11:28:40
阅读次数:
349
原题地址:https://oj.leetcode.com/problems/plus-one/题意:Given
a non-negative number represented as an array of digits, plus one to the
number.The digits are...
分类:
编程语言 时间:
2014-06-11 11:25:27
阅读次数:
304
原来这么长时间没写了,今天阅读《集体智慧编程》的时候,发现了python的一个功能,列表推导式。留个存[ 表达式 for 变量 in 列表] 或者[表达式
for 变量 in 列表 if 条件]例如:ll=[1,2,3,4,5,6,7,8,9,0]print (v*10 for v in ll if...
分类:
编程语言 时间:
2014-06-11 11:23:16
阅读次数:
330
1, 安装nodejs安装python。2,安装node-gyp:sudo npm
install -g
node-gyp3,写代码:新建一个目录,创建hello.cc文件,然后创建binding.gyp文件:hello.cc#include#includeusingnamespace
v8;Han...
分类:
编程语言 时间:
2014-06-11 11:10:24
阅读次数:
380
1、OraclePackage的作用:可以简化应用设计、提高应用性能、实现信息隐藏、子程序重载2、ORACLE中的function
、package、package
bodies、procedure的区别和相同:function有返回值,有参数;procedure无返回值,有参数;package、p...
分类:
其他好文 时间:
2014-06-11 10:52:36
阅读次数:
209
FastReport调用Delphi中的人民币大写转换自定义函数FastReport调用Delphi中的人民币大写转换自定义函数function
TJzpzEdit1.MoneyCn(mmje: Double): string;consts1: string = ‘零壹贰叁肆伍陆柒捌玖’;s2: s...
分类:
其他好文 时间:
2014-06-11 10:09:52
阅读次数:
189
/验证规则详细配置 public function rules() { // NOTE: you
should only define rules for those attributes that // will receive user inputs.
...
分类:
其他好文 时间:
2014-06-11 10:05:03
阅读次数:
180
Jenkins的job->build 支持Ant,maven,windows
batch和Shell,
但是我们知道python,perl,ruby等脚本其实也是shell脚本,所以这里的Shell可以扩展为python,perl,ruby等。例如:
下面执行windows batch 和pytho...
分类:
编程语言 时间:
2014-06-11 10:03:49
阅读次数:
296
原题地址:https://oj.leetcode.com/problems/rotate-image/题意:You
are given annxn2D matrix representing an image.Rotate the image by 90 degrees
(clockwise).Fo...
分类:
编程语言 时间:
2014-06-11 09:43:59
阅读次数:
1264
//js验证数字输入function gaga(obj){ //
值允许输入一个小数点和数字obj.value = obj.value.replace(/[^\d.]/g,"");
//先把非数字的都替换掉,除了数字和.obj.value = obj.value.replace(/^\./g,"")...
分类:
Web程序 时间:
2014-06-11 09:33:02
阅读次数:
268