2022年10月23日

贪心算法 455

摘要: ###455. 分发饼干 class Solution { public int findContentChildren(int[] g, int[] s) { Arrays.sort(g); //孩子列表 Arrays.sort(s); //饼干列表 int start=0; //先把饼干和孩子从 阅读全文

posted @ 2022-10-23 13:24 你是千堆雪我是长街7 阅读(9) 评论(0) 推荐(0)

导航