一. 随机变量1.1 概率分布概率分布 定义 : 随机变量X取各个值$x_i$的概率称为X的概率分布. 对于离散型随机变量: $ P(X=x_i)=p_i, (i=1,2,3,...) $ 特性 : a. $p_i>0$ b. $\sum_i^{\infty} p_i =1 $累积概率分布(CDF)...
分类:
其他好文 时间:
2014-07-16 19:28:51
阅读次数:
340
1 void func(const vector & candidates, int target, vector & path, int cur , int sum , vector > & ret ) 2 { 3 if( sum == ...
分类:
其他好文 时间:
2014-07-16 19:24:59
阅读次数:
225
The partial sum problem时间限制:1000 ms | 内存限制:65535 KB 难度:2描述One day,Tom’s girlfriend give him an array A which contains N integers and asked him:Can you...
分类:
其他好文 时间:
2014-07-16 19:24:53
阅读次数:
181
Task switcher in KDE is used to configure the behavior for navigating through windows. It has two modes, main and alternative. By default, the task sw...
分类:
其他好文 时间:
2014-07-15 23:29:00
阅读次数:
379
题目Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which r...
分类:
其他好文 时间:
2014-07-15 23:21:33
阅读次数:
218
Snowflake Snow SnowflakesTime Limit:4000MSMemory Limit:65536KTotal Submissions:30529Accepted:8033DescriptionYou may have heard that no two snowflakes ...
分类:
其他好文 时间:
2014-07-15 09:27:32
阅读次数:
231
3SumGiven an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:El...
分类:
其他好文 时间:
2014-07-15 08:51:50
阅读次数:
231
Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the...
分类:
其他好文 时间:
2014-07-15 08:45:17
阅读次数:
236
3Sum ClosestGiven an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three int...
分类:
其他好文 时间:
2014-07-14 15:23:22
阅读次数:
171
4SumGiven an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum...
分类:
其他好文 时间:
2014-07-14 15:02:09
阅读次数:
228