455. 分发饼干

贪心算法: 1.确定问题最优子结构 2.设计递归算法 3.证明贪心算法安全性 4.将递归转换为迭代 自己解答: class Solution(object): def findContentChildren(self, g, s): """ :type g: List[int] :type s: List[int] :rtype: int """ g.sor
相关文章
相关标签/搜索