若对于每一个类型S的对象o1,都存在一个类型T的对象o2,使得在所有针对T编写的程序P中,用o1替换o2后,程序P的行为功能不变,则S是T的子类型。What
is wanted here is something like the following substitution property: I...
分类:
其他好文 时间:
2014-05-14 03:32:08
阅读次数:
229
I think the official documentation gives you
the answer to this one (albeit in a fairly nonspecific way):This method is the
dynamic equivalent of the ...
分类:
其他好文 时间:
2014-05-14 03:31:06
阅读次数:
223
1、对elsasticsearch index的解释,What exactly is an index
in Elasticsearch ?basic definitionAn index isdefinedas:An index is like a
‘database’ in a relation...
分类:
其他好文 时间:
2014-05-14 03:21:49
阅读次数:
287
两种方法:1.使用pkill命令 1.1 通过who 或则 w 查看当前连接的用户 例如: w
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT jjony pts/0 xxx.xxx.xxx.xxx ...
分类:
系统相关 时间:
2014-05-12 01:32:34
阅读次数:
410
1 //@author: Zou Xiaohang 2 //@describe: this class
is like AtomicMarkableReference which is in java concurrent package. 3 //
remember th...
分类:
编程语言 时间:
2014-05-12 01:24:20
阅读次数:
504
w load average: 0.12, 0.09, 0.02
1,5,15分钟的负载情况,0.8以下为正常 JCPU 对应的用户执行命令所占用的cpu时间 PCPU 执行当前命令占用的cpu时间 WHAT ...
分类:
系统相关 时间:
2014-05-11 22:54:37
阅读次数:
416
题目链接:点击打开链接
题意比较明显,不赘述。
删除时可以把i-1转到根,把i+1转到根下
则i点就在 根右子树 的左子树,且只有i这一个 点
#include
#include
#include
#include
using namespace std;
#define N 300500
#define inf 10000000
#define L(x) tree[x].ch[0]
#d...
分类:
其他好文 时间:
2014-05-11 21:05:52
阅读次数:
365
题意:
给定2个操作
0、把区间的每个数sqrt
2、求和
因为每个数的sqrt次数很少,所以直接更新到底,用个标记表示是否更新完全(即区间内的数字只有0,1就不用再更新了)
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define N 1000...
分类:
其他好文 时间:
2014-05-11 21:02:45
阅读次数:
325
Given a set ofnon-overlappingintervals, insert
a new interval into the intervals (merge if necessary).You may assume that the
intervals were initially...
分类:
其他好文 时间:
2014-05-11 16:35:35
阅读次数:
224
Given an array of words and a length L, format
the text such that each line has exactly L characters and is fully (left and
right) justified.You shoul...
分类:
其他好文 时间:
2014-05-11 15:15:29
阅读次数:
287