摘要:
买卖股票的最佳时机 II class Solution { public: int maxProfit(vector<int>& prices) { int answer = 0; for(int i = 1 ; i < prices.size(); i++) { if(prices[i] - pr 阅读全文
posted @ 2025-02-13 20:45
skyler886
阅读(11)
评论(0)
推荐(0)
摘要:
分发饼干 class Solution { public int findContentChildren(int[] g, int[] s) { Arrays.sort(g); Arrays.sort(s); int m = g.length, n = s.length; int count = 0 阅读全文
posted @ 2025-02-13 19:39
skyler886
阅读(16)
评论(0)
推荐(0)

浙公网安备 33010602011771号