题意 买股票,中间买卖完一次后必须休息一下,求最大收益 题解 建议观看视频 https://www.bilibili.com/video/av31578180 状态转移图 buy[i] 代表当前持有股票的最大收益 sell[i] 代表当前卖出股票的最大收益 rest[i] 代表当前休息的最大收益 c ...
分类:
其他好文 时间:
2019-08-04 18:03:54
阅读次数:
86
A. Best Subsegment 显然,选择数列中的最大值当做区间(长度为$1$)。只要尝试最大值这个区间是否能扩展(左右两边值是否跟它一样就行了) C. Magic Ship 二分答案。容易看出,时刻符合单调性。若$d$天能到,那么$d + 1$也能到。因为可以保持跟风相反的方向就可以保持不动 ...
分类:
其他好文 时间:
2019-08-04 01:45:15
阅读次数:
109
ref: "Code review Best Practices" 文章将了以下内容: 3w:why、what、when 进行 code review code review 之前的准备 执行 code review CRs 示例 1.为什么进行CR 代码编写者会规范自己的代码,也会觉得复查别人的代 ...
分类:
其他好文 时间:
2019-08-04 00:52:24
阅读次数:
142
2017A Version CAT Caterpillar ET Diagnostic Adapter III PLUS DELLd630 laptop (Real Caterpillar ET3 Adapter III) we will install the software before sh ...
分类:
其他好文 时间:
2019-07-31 15:10:05
阅读次数:
90
2017A Version CAT Caterpillar ET Diagnostic Adapter III PLUS DELLd630 laptop (Real Caterpillar ET3 Adapter III) we will install the software before sh ...
分类:
其他好文 时间:
2019-07-31 14:39:42
阅读次数:
78
Best Time to Buy and Sell Stock II Best Time to Buy and Sell Stock III 比较难想到,分别记录四个状态: 1buy,1buy1sell,2buy1sell,2buy2sell。 构建四个dp数组,例如,1buy1sell[i] = ...
分类:
其他好文 时间:
2019-07-28 13:54:19
阅读次数:
77
Tired of doing the same job? Get your hands on 700-551 exam It is the nature of the human being that he/she will get tired of doing the same task over ...
分类:
其他好文 时间:
2019-07-24 16:39:32
阅读次数:
127
Tired of doing the same job? Get your hands on 352-011 exam It is the nature of the human being that he/she will get tired of doing the same task over ...
分类:
其他好文 时间:
2019-07-24 16:33:29
阅读次数:
111
Tired of doing the same job? Get your hands on 700-280 exam It is the nature of the human being that he/she will get tired of doing the same task over ...
分类:
其他好文 时间:
2019-07-20 19:57:16
阅读次数:
121
Tired of doing the same job? Get your hands on 700-501 exam It is the nature of the human being that he/she will get tired of doing the same task over ...
分类:
其他好文 时间:
2019-07-20 19:55:28
阅读次数:
113