2015年9月10日

[LeetCode] 122 - Best Time to Buy and Sell Stock II

摘要: 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 complete a... 阅读全文

posted @ 2015-09-10 18:18 tuituji 阅读(128) 评论(0) 推荐(0) 编辑

[LeetCode] 121 - Best Time to Buy and Sell Stock

摘要: 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... 阅读全文

posted @ 2015-09-10 18:17 tuituji 阅读(129) 评论(0) 推荐(0) 编辑

导航