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_1 , var_2 = 0 , var_0 [ 0 ]
      for var_3 in var_0 [ 1 : ] :
          var_1 = max ( var_1 , var_3 - var_2 )
          var_2 = min ( var_2 , var_3 )
      return var_1
  