摘要: 题目: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 comp... 阅读全文
posted @ 2015-12-18 14:25 hudiwei-hdw 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Best Time to Buy and Sell Stock题目: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... 阅读全文
posted @ 2015-12-18 14:23 hudiwei-hdw 阅读(115) 评论(0) 推荐(0) 编辑