Redis
leetcode 标签描述

链接:https://leetcode.cn/problems/container-with-most-water/ 11.盛最多水的容器 给定一个长度为n的整数数组height。有n条垂线,第i条线的两个端点是(i,0)和(i,height[i])。 找出其中的两条线,使得它们与x轴共同构成的容器可以容纳最多的水。 返回容器可以储存的最大水量。 我自己的暴力解法 classMySolution { public: intmaxArea(std::vector<int>&height) { if(0height.size()) { std::cout<<"e...