Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended fo ...
分类:
其他好文 时间:
2017-07-03 14:02:57
阅读次数:
206
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 fo ...
分类:
其他好文 时间:
2017-07-02 22:20:43
阅读次数:
208
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:
编程语言 时间:
2017-07-01 18:16:39
阅读次数:
188
divmod函数 divmod(7,3) (2, 1) >>> a,b=divmod(7,3) >>> a 2 >>> b 1 >>> help(divmod) divmod返回一个tuple ,(x//y,x%y) enumerate(iterable) 返回的事一个迭代器,包含他的值和索引 fo ...
分类:
其他好文 时间:
2017-06-30 13:47:54
阅读次数:
192
[root@kubernetes-master pods]# kubectl create -f mysql.yaml Error from server (ServerTimeout): error when creating "mysql.yaml": No API token found fo ...
分类:
Windows程序 时间:
2017-06-29 23:43:28
阅读次数:
4151
RequireJS实现了AMD的API. CommonJS是使用exports对象来定义模块的一种方法,它定义了模块的内容。简单地实现一个CommonJS的定义就像以下这样: // someModule.js exports.doSomething = function() { return "fo ...
分类:
Web程序 时间:
2017-06-29 11:20:58
阅读次数:
142
#define MOD 1000000007 typedef long long ll; typedef struct matrixnod{ ll m[2][2]; }matrix; matrix mat(matrix a,matrix b){ matrix c; int mod=MOD-1; fo ...
分类:
其他好文 时间:
2017-06-28 14:21:40
阅读次数:
138