问题:https://leetcode.com/problems/assign-cookies/?tab=Description Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each
455. Assign Cookies 一、问题描述 Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, whic
455.分发饼干 class Solution: def findContentChildren(self, g: List[int], s: List[int]) -> int: # if not g or not s: 可以没有这句,因为后面index>=0已经涵盖了 # return 0 g.sort()