会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
BarcelonaTong's Blog
博客园
首页
新随笔
联系
订阅
管理
2023年1月30日
【算法训练营day31】LeetCode455. 分发饼干 LeetCode376. 摆动序列 LeetCode53. 最大子序和
摘要: LeetCode455. 分发饼干 题目链接:455. 分发饼干 独上高楼,望尽天涯 贪心的思路,将每块饼干都发给最合适的孩子,那么最后分发饼干的策略就是最合适的,即可满足最多的孩子。 class Solution { public: int findContentChildren(vector<i
阅读全文
posted @ 2023-01-30 15:18 BarcelonaTong
阅读(21)
评论(0)
推荐(0)
公告