public int maxArea(int[] height) {
		if (height.length < 2)
			return 0;
		int max = 0;
		int left = 0;
		int right = height.length - 1;
		while (left < right) {
			int h = Math.min(height[left], height[right]);
			int width = right - left;
			max = Math.max(max, h * width);
			//basic idea, move the shorter board
			if (height[left] < height[right])
				left++;
			else
				right--;
		}
		return max;
	}