IIkcotSlleSdnayuBotemiTtseB.122

来源:互联网 发布:金枝欲孽 甄嬛传 知乎 编辑:程序博客网 时间:2024/05/05 18:07

problem:https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/

tips:

stock price should not be 0,but here in this problem it could be 0.

price could remain the same for several days and then rise, it should be taken into consideration.

pay attention to boundary.

0 0
原创粉丝点击