[leetcode] Best Time to Buy and Sell Stock Ⅰ Ⅱ Ⅲ
摘要:
三道题目都是比较基础的dp或者贪心的题目,除了第三个需要想一会,仔细分析题干才能发现玄机,其他的都是算法的基本应用。下面具体分析Best Time to Buy and Sell StockSay you have an array for which theithelement is the pr... 阅读全文
posted @ 2014-12-01 15:34 cha1992 阅读(133) 评论(0) 推荐(0) 编辑