摘要: ##455.分发饼干 题目|文章 ####思路 满足能让最小胃口的孩子吃饱 首先对饼干和胃口值都进行排序 对饼干进行遍历,如果能满足当前孩子的胃口,那么就将结果加1。 ####实现 点击查看代码 class Solution { public: int findContentChildren(vec 阅读全文
posted @ 2022-11-01 22:29 缩地 阅读(28) 评论(0) 推荐(0)