摘要: 每日一题11 题目: 121. 买卖股票的最佳时机 思路:找出最低值,然后再找出其后的最高值即可! class Solution { public int maxProfit(int[] prices) { int max=0; int n=prices.length; int min=100000 阅读全文
posted @ 2023-03-08 21:25 ZLey 阅读(21) 评论(0) 推荐(0)