<doocs>0455.Assign Cookies_1.py
def findContentChildren( g: List[int], s: List[int]) -> int:
    g.sort()
    s.sort()
    j = 0
    for i, v in enumerate(g):
        while j < len(s) and s[j] < v:
            j += 1
        if j >= len(s):
            return i
        j += 1
    return len(g)
def sample_funcname ( var_0 : List [ int ] , var_3 : List [ int ] ) -> int :
    var_0.sort ( )
    var_3.sort ( )
    var_6 = 0
    for var_8 , var_9 in enumerate ( var_0 ) :
        while var_6 < len ( var_3 ) and var_3 [ var_6 ] < var_9 :
            var_6 += 1
        if var_6 >= len ( var_3 ) :
            return var_8
        var_6 += 1
    return len ( var_0 )
