comefrom: <doocs>0960.Delete Columns to Make Sorted III_1.py
code: 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)
masked: def sample_funcname ( var_0 : List [ str ] ) -> int :
      var_1 = len ( var_0 [ 0 ] )
      var_2 = [ 1 ] * var_1
      for var_3 in range ( 1 , var_1 ) :
          for var_4 in range ( var_3 ) :
              if all ( var_5 [ var_4 ] <= var_5 [ var_3 ] for var_5 in var_0 ) :
                  var_2 [ var_3 ] = max ( var_2 [ var_3 ] , var_2 [ var_4 ] + 1 )
      return var_1 - max ( var_2 )
  