摘要: public int maxProfit(int[] prices) { int max = 0 , min = Integer.MAX_VALUE; for(int num : prices) { max = Math.max(max,num - min); min = Math.min(min, 阅读全文
posted @ 2020-07-14 08:50 贼心~不死 阅读(134) 评论(0) 推荐(0) 编辑