<doocs>0960.Delete Columns to Make Sorted III_1.py
def minDeletionSize( strs: List[str]) -> int:
    n = len(strs[0])
    dp = [1] * n
    for i in range(1, n):
        for j in range(i):
            if all(s[j] <= s[i] for s in strs):
                dp[i] = max(dp[i], dp[j] + 1)
    return n - max(dp)
def sample_funcname ( var_0 : List [ str ] ) -> int :
    var_6 = len ( var_0 [ 0 ] )
    var_8 = [ 1 ] * var_6
    for var_10 in range ( 1 , var_6 ) :
        for var_11 in range ( var_10 ) :
            if all ( var_13 [ var_11 ] <= var_13 [ var_10 ] for var_13 in var_0 ) :
                var_8 [ var_10 ] = max ( var_8 [ var_10 ] , var_8 [ var_11 ] + 1 )
    return var_6 - max ( var_8 )
