随笔分类 -  贪心算法

摘要:1.leetcode455 分发饼干 这里的局部最优解其实就是:大饼干先满足大胃口的 class Solution { public int findContentChildren(int[] g, int[] s) { Arrays.sort(g); Arrays.sort(s); int con 阅读全文
posted @ 2022-05-13 19:53 明卿册 阅读(53) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示