摘要:
122.买卖股票的最佳时机II 点击查看代码 class Solution { public: int maxProfit(vector<int>& prices) { int result = 0; for(int j = 1; j < prices.size(); ++j) { if(price 阅读全文
posted @ 2025-03-11 20:52
coder小杰
阅读(19)
评论(0)
推荐(0)
摘要:
分发饼干 点击查看代码 class Solution { public: int findContentChildren(vector<int>& g, vector<int>& s) { sort(g.begin(), g.end()); sort(s.begin(), s.end()); int 阅读全文
posted @ 2025-03-11 20:47
coder小杰
阅读(15)
评论(0)
推荐(0)

浙公网安备 33010602011771号