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 may complete as many transactions as you like (ie, buy on...
分类:
其他好文 时间:
2015-01-15 09:27:56
阅读次数:
187
只有每次看这个图的时候才觉得c++没有白学啊~~~平常用vs的时候都各种怀念eclipse,各种怀念java~~~ 这题算的是最大利润,原先我想的是找到最小值和最大值,之差不就是最大利润了么,后来想想,最小值可能在最大值之后,不能说在3号买进了回去1号卖出股票哈~然后想,记录某天之前的最小值,再记录...
分类:
其他好文 时间:
2015-01-14 19:39:12
阅读次数:
151
Both Grunt and Gulp.js perform these automation tasks particularly well, although Gulp.js has the edge on speed, whereas Grunt has the best plugin sup...
分类:
其他好文 时间:
2015-01-14 15:28:22
阅读次数:
189
The C# Memory Model in Theory and Practice Best Practices All code you write should rely only on the guarantees made by the ECMA C# specification, and...
http://theneodesign.com/the-best-tools-for-developers-2014/Tools, apps, software are the resources that claim to help people complete their assigned t...
分类:
其他好文 时间:
2015-01-13 19:18:02
阅读次数:
273
https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/Say you have an array for which theithelement is the price of a given stock on day...
分类:
其他好文 时间:
2015-01-13 14:14:12
阅读次数:
100
https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock/Say you have an array for which theithelement is the price of a given stock on dayi.I...
分类:
其他好文 时间:
2015-01-13 14:08:51
阅读次数:
132
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:
其他好文 时间:
2015-01-12 14:17:39
阅读次数:
207
在iOS开发中,请求网络数据,处理获得的数据是很常见的功能,但是很少有资料会讨论关于网络的处理应该放在MVC中得哪个层中。我在网上Google了一番,记下了几个觉得比较不错的链接。现记录如下:http://stackoverflow.com/questions/4810289/best-archit...
分类:
移动开发 时间:
2015-01-10 16:19:59
阅读次数:
232
原文:
https://www.ssllabs.com/downloads/SSL_TLS_Deployment_Best_Practices_1.3.pdf
译者: Shawn the R0ck,(后面校正的自己加到后面)
SSL/TLS部署最佳实践
作者:Ivan Risti?
version 1.3 (17 September ...
分类:
其他好文 时间:
2015-01-09 12:51:15
阅读次数:
171