摘要: 分发饼干 题目 解析 结果由饼干数决定,所以遍历饼干,每次与孩子的胃口匹配。 class Solution { public int findContentChildren(int[] g, int[] s) { Arrays.sort(g); Arrays.sort(s); int count = 阅读全文
posted @ 2020-11-25 22:43 CPJ31415 阅读(88) 评论(0) 推荐(0)