class Solution {public:int maxArea(vector &height) {int result=0;int temp=0;int i,j;int len=height.size();int wide=0;int high;vector vec;vector::iterator iter;for (i=0,j=len-1;iresult?temp:result;height[i]b?b:a;}};
LeetCode之maxArea
最新推荐文章于 2022-10-27 20:50:06 发布