贪心思想 用尽可能最小的成本解决最大的问题 解法1: class Solution { public int findContentChildren(int[] g, int[] s) { Arrays.sort(g); Arrays.sort(s); int count = 0