版权所有,欢迎转载,转载请注明出处,谢谢
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 (ie, buy one and sel...
分类:
其他好文 时间:
2015-02-06 13:22:16
阅读次数:
121
2015.2.5//union//联合体中的成员变量共用的是同一块内存//union Unit//{// char ch[9];// short a;// int amount;// float price;// long number;//};////////struct Goods{/...
分类:
移动开发 时间:
2015-02-05 21:49:48
阅读次数:
263
例如数据库里面的json字符串是这样的var str = '[{"name":"宗2瓜","num":"1","price":"122"},{"name":"宗呱呱","num":"1","price":"100"}]';var xqo = eval('(' + str + ')');for(var...
分类:
编程语言 时间:
2015-02-05 17:49:22
阅读次数:
311
2015.2.4#include #include //struct//struct Goods//{// char name[20];// float price;// long amount;//};////int main(int argc, const char * argv[]) {...
分类:
移动开发 时间:
2015-02-04 23:10:32
阅读次数:
194
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 (ie, buy one and sell one share of the stock),...
分类:
其他好文 时间:
2015-02-04 18:49:28
阅读次数:
123
附介绍:四位来自麻省理工学院的研究人员蒂娜·卡塔比(Dina Katabi)、海塞姆·哈桑(Haitham Hassanieh)、比欧特·因迪克(Piotr Indyk)和埃里克·普里斯(Eric Price)今年1月,提出了一种新算法,以替代计算机科学领域最重要的算法之一。————设计出了一种能更...
分类:
其他好文 时间:
2015-02-03 16:44:32
阅读次数:
114
标题:Best Time to Buy and Sell Stock II通过率:37.3%难度:中等Say you have an array for which theithelement is the price of a given stock on dayi.Design an algor...
分类:
其他好文 时间:
2015-02-02 12:28:59
阅读次数:
124
标题:Best Time to Buy and Sell Stock通过率:32%难度:中等Say you have an array for which theithelement is the price of a given stock on dayi.If you were only per...
分类:
其他好文 时间:
2015-02-02 12:18:58
阅读次数:
138
题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complet...
分类:
编程语言 时间:
2015-02-01 10:46:16
阅读次数:
251
思路: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 ...
分类:
编程语言 时间:
2015-01-31 21:47:24
阅读次数:
180