<awangdev>Minimum Subarray_2.java
public int minSubArray(ArrayList<Integer> nums) {
		if (nums == null || nums.size() == 0) {
			return 0;
		}	
		int curMin = nums.get(0);
		int minRst = nums.get(0);
		for (int i = 1; i < nums.size(); i++) {
			curMin = Math.min(nums.get(i), curMin + nums.get(i));
			minRst = Math.min(curMin, minRst);
		}
		return minRst;
    }
public int sample_funcname ( ArrayList < Integer > var_2 ) {
  if ( var_2 == null || var_2 . size ( ) == 0 ) {
    return 0 ;
  }
  int var_7 = var_2 . get ( 0 ) ;
  int var_8 = var_2 . get ( 0 ) ;
  for ( int var_10 = 1 ;
  var_10 < var_2 . size ( ) ;
  var_10 ++ ) {
    var_7 = Math . min ( var_2 . get ( var_10 ) , var_7 + var_2 . get ( var_10 ) ) ;
    var_8 = Math . min ( var_7 , var_8 ) ;
  }
  return var_8 ;
}
