Stat2.2x Probability(概率)课程由加州大学伯克利分校(University of California, Berkeley)于2014年在edX平台讲授。PDF笔记下载(Academia.edu)SummaryBayes Theorem $$P(A_i|B)=\frac{P(B|...
分类:
其他好文 时间:
2014-12-26 06:09:33
阅读次数:
136
找到最多含有两个不同字符的子串的最长长度。例如:eoeabc,最长的是eoe为3,其他都为2.思路:用p1,p2表示两种字符串的最后一个出现的下标位置。初始p1为0. p2为-1.start初始化为0,表示两种字符串的开头。只要遍历一次string就可以得到结果了。首先我们要确定p2的值,那么i要一...
分类:
其他好文 时间:
2014-12-25 21:47:44
阅读次数:
150
You set the recovery window to seven days and the backup optimiza
tion to ON using the CONFIGURE command of Recovery Manager (RMAN). The
most recent backup of the TOOLStablespace to disk was taken o...
分类:
数据库 时间:
2014-12-25 16:31:34
阅读次数:
155
题目:
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the ...
分类:
编程语言 时间:
2014-12-25 16:25:25
阅读次数:
146
题目描述:
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line i is at (i, ai) and (i...
分类:
其他好文 时间:
2014-12-25 11:24:50
阅读次数:
163
Stat2.2x Probability(概率)课程由加州大学伯克利分校(University of California, Berkeley)于2014年在edX平台讲授。PDF笔记下载(Academia.edu)Summary$$P(A\cap B)=P(B | A)\cdot P(A)$$ $...
分类:
其他好文 时间:
2014-12-25 06:34:57
阅读次数:
233
Problem Description
N cities of the Java Kingdom need to be covered by radars for being in a state of war. Since the kingdom has M radar stations but only K operators, we can at most operate K rada...
分类:
其他好文 时间:
2014-12-25 01:30:48
阅读次数:
460
参考:http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-readCode Complete (2nd edition) by Steve M...
分类:
其他好文 时间:
2014-12-24 13:17:55
阅读次数:
239
1原始数据类型(primitive data type) == 基本类型 (fundamental type)byte short int long float double char boolean引用类型 reference type2System.in System.outjava.util....
分类:
编程语言 时间:
2014-12-24 09:59:59
阅读次数:
221
安装kvm,用virt-manager启动时报错如下:Traceback (most recent call last): File "/usr/share/virt-manager/virt-manager.py", line 383, in main() File "/usr/share/vi....
分类:
其他好文 时间:
2014-12-24 09:48:57
阅读次数:
385