comefrom: <doocs>0121.Best Time to Buy and Sell Stock_1.py
code: def maxProfit( prices: List[int]) -> int:
      res, mi = 0, prices[0]
      for price in prices[1:]:
          res = max(res, price - mi)
          mi = min(mi, price)
      return res
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_4 , var_5 = 0 , var_0 [ 0 ]
      for var_7 in var_0 [ 1 : ] :
          var_4 = max ( var_4 , var_7 - var_5 )
          var_5 = min ( var_5 , var_7 )
      return var_4
  