comefrom: <awangdev>121. Best Time to Buy and Sell Stock_2.java
code: public int maxProfit(int[] prices) {
          if (prices == null || prices.length <= 1) return 0;
          int profit = 0, min = prices[0];
          for (int i = 1; i < prices.length; i++) {
              if (prices[i] < min) min = prices[i];
              else profit = Math.max(profit, prices[i] - min);
          }
          return profit;
      }
masked: public int sample_funcname ( int [ ] var_0 ) {
    if ( var_0 == null || var_0 . length <= 1 ) return 0 ;
    int var_5 = 0 , var_6 = var_0 [ 0 ] ;
    for ( int var_7 = 1 ;
    var_7 < var_0 . length ;
    var_7 ++ ) {
      if ( var_0 [ var_7 ] < var_6 ) var_6 = var_0 [ var_7 ] ;
      else var_5 = Math . max ( var_5 , var_0 [ var_7 ] - var_6 ) ;
    }
    return var_5 ;
  }
  