题意 : 给出 N 个物品的价值和重量,然后要求选出 K 个物品使得选出来物品的单位重量价值最大,最后输出被选物品的编号。 分析 : 很容易去想先算出每个物品的单位价值然后升序排序取前 K 个,但是很可惜这样的做法是错误的。 例如 : N = 3、K = 2、{ w、v } = { {2,2}、{5 ...
分类:
其他好文 时间:
2018-01-13 22:23:33
阅读次数:
201
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 ...
分类:
其他好文 时间:
2018-01-13 20:48:34
阅读次数:
127
#week8 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 tran ...
分类:
其他好文 时间:
2018-01-13 11:10:28
阅读次数:
144
#week15 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You ma ...
分类:
其他好文 时间:
2018-01-13 11:09:04
阅读次数:
112
何凯明大佬 ICCV 2017 best student paper 作者提出focal loss的出发点也是希望one-stage detector可以达到two-stage detector的准确率,同时不影响原有的速度.one-stage detector的准确率不如two-stage det ...
分类:
其他好文 时间:
2018-01-11 15:35:36
阅读次数:
265
nodejs的安装 mongodDB的安装(https://www.cnblogs.com/best/p/6212807.html#_lab2_0_0) 在mongoDB安装目录下 创建data文件夹,里面创建db、log文件夹在mongoDB安装目录下 创建mongo.config文件dbpath ...
分类:
数据库 时间:
2018-01-11 11:26:20
阅读次数:
327
毕设终于告一段落,传统方法的视觉做得我整个人都很奔溃,终于结束,可以看些搁置很久的一些论文了,嘤嘤嘤 Densely Connected Convolutional Networks 其实很早就出来了,cvpr 2017 best paper 觉得读论文前,还是把dense net的整个网络结构放到 ...
分类:
Web程序 时间:
2018-01-10 13:56:39
阅读次数:
286
"欢迎fork and star:Nowcoder Repository github" 123. Best Time to Buy and Sell Stock III 题目 解析 C++ //Buy and Sell Stock iii class Solution_123 { public: ...
分类:
其他好文 时间:
2018-01-04 18:17:28
阅读次数:
153
1012. The Best Rank (25) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue 时间限制 400 ms 时间限制 400 ms 内存限制 65536 kB 内存限制 65536 kB 代码长度限 ...
分类:
其他好文 时间:
2018-01-02 18:43:29
阅读次数:
177
2017年最大的事情就是选择来南京读研,离开了山大,来到了新学校新学校风景不错,地理位置也很好在南京遇到的新同学新老师以及新朋友都很好虽然2017留下了一些遗憾但还是感谢2017带给我的一切新的一年,要更努力,完成自己计划的几个目标争取在迎接2019的时候,能安心告诉自己这条路更好 :)Best w ...
分类:
其他好文 时间:
2018-01-01 00:25:39
阅读次数:
123