最新 最热

Array - 309. Best Time to Buy and Sell Stock with Cooldown

Say you have an array for which the ith element is the price of a given stock on day i.

2020-09-23
1

Array - 42. Trapping Rain Water Hard

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.

2020-09-23
0

Array - 121. Best Time to Buy and Sell Stock

Say you have an array for which the _i_th element is the price of a given stock on day i.

2020-09-23
0

设计模式之工厂方法模式

工厂方法模式(Factory Method),是23种设计模式之一。DP中是这么定义工厂方法模式的:

2020-09-23
1

科研解读 | ACP-高温天气对土壤湿度的敏感性:WRF模式的个例研究

本成果以“Sensitivity of high-temperature weather to initial soil moisture: a case study using the WRF model”为题,发表在大气科学顶级期刊SCI一区期刊Atmospheric Chemistry and Physics上。......

2020-09-21
1

GEO数据挖掘4

这里需要使用差异比较用到的limma包,在使用这个包进行分析之前,需要准备三个矩阵 * 表达矩阵 * 分组矩阵 * 差异比较矩阵

2020-09-15
1

数论-素数

若两个素数相差2则称为一对孪生素数,求区间[1,n]内的孪生素数个数。 筛法素数打表,然后判断孪生,用前缀和记录。

2020-09-15
1

贪心-HDU1789 Doing Homework again(活动安排问题)

首先把作业按截止日期从小到大排序,如果日期相同按罚分降序,我们希望完成尽可能多的作业。然而仅靠日期排序并不是最优的,当一项作业超过截止日期时,我们不能就简单的加上罚分,我们要把它的罚分和前面完成作业的最小罚分相...

2020-09-15
1

杭电 1789(贪心思维练习)

Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If...

2020-09-11
1

杭电5178 (二分练习!)

pairs John has n points on the X axis, and their coordinates are (x[i],0),(i=0,1,2,…,n−1). He wants to know how many pairs<a,b> that |x[b]−x[a]|≤k.(a<b)

2020-09-11
1