Fork me on github
摘要: https://www.sysgeek.cn/install-zsh-shell-ubuntu-18-04/ 阅读全文
posted @ 2020-07-11 22:57 zjy4fun 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 思路 动态规划,公有三种状态,持有,不持有但不能买,不持有但可买 注意状态的转换 代码 class Solution { public int maxProfit(int[] prices) { if(prices == null || prices.length < 2){ return 0; } 阅读全文
posted @ 2020-07-11 00:03 zjy4fun 阅读(160) 评论(0) 推荐(0) 编辑