https://leetcode-cn.com/problems/assign-cookies/
public int findContentChildren(int[] g, int[] s) {
// 将g 和 s排序
Arrays.sort(g); // 胃口值
Arrays.sort(s); // 饼干尺寸
int count = 0;
for (int i = 0; i < s.length; i++) {
int cur = s[i];
for (int j = count; j < g.length; j++) {
if (cur>=g[j]) {
count++;
break;
}
}
}
return count;
}