comefrom: <qiyuangong>962_Maximum_Width_Ramp_2.py
code: def maxWidthRamp( A):
      ans = 0
      m = float('inf')
      for i in sorted(range(len(A)), key=A.__getitem__):
          ans = max(ans, i - m)
          m = min(m, i)
      return ans
masked: def sample_funcname ( var_0 ) :
      var_2 = 0
      var_5 = float ( 'inf' )
      for var_11 in sorted ( range ( len ( var_0 ) ) , var_9 = var_0.__getitem__ ) :
          var_2 = max ( var_2 , var_11 - var_5 )
          var_5 = min ( var_5 , var_11 )
      return var_2
  