<awangdev>Container With Most Water_1.java
public int maxArea(int[] heights) {
    	if (heights == null || heights.length == 0) {
    		return 0;
    	}
    	int left = 0;
    	int right = heights.length - 1;
    	int maxWater = Integer.MIN_VALUE;
    	while (left < right) {
    	    int lowWall = heights[left] < heights[right] ? heights[left] : heights[right];
    		maxWater = Math.max(maxWater, (right - left) * lowWall);
    		if (heights[left] < heights[right]) {
    			left++;
    		} else {
    			right--;
    		}
    	}
    	return maxWater;
    }
public int sample_funcname ( int [ ] var_0 ) {
  if ( var_0 == null || var_0 . length == 0 ) {
    return 0 ;
  }
  int var_4 = 0 ;
  int var_6 = var_0 . length - 1 ;
  int var_9 = Integer . MIN_VALUE ;
  while ( var_4 < var_6 ) {
    int var_10 = var_0 [ var_4 ] < var_0 [ var_6 ] ? var_0 [ var_4 ] : var_0 [ var_6 ] ;
    var_9 = Math . max ( var_9 , ( var_6 - var_4 ) * var_10 ) ;
    if ( var_0 [ var_4 ] < var_0 [ var_6 ] ) {
      var_4 ++ ;
    }
    else {
      var_6 -- ;
    }
  }
  return var_9 ;
}
