leetcode:Container With Most Water 6行AC
来源:互联网 发布:企业怎样做网络推广 编辑:程序博客网 时间:2024/06/08 10:28
class Solution {public: int maxArea(vector<int>& height) { int start = 0, end = height.size() - 1; int imax = INT_MIN; while (end > start) { int res = (end - start) * (height[end] < height[start] ? height[end --] : height[start ++]); imax = max(imax, res); } return imax; }};
0 0
- leetcode:Container With Most Water 6行AC
- LeetCode: Container With Most Water
- [LeetCode]Container With Most Water
- LeetCode Container With Most Water
- LeetCode: Container With Most Water
- [Leetcode] Container With Most Water
- Leetcode: Container With Most Water
- [LeetCode] Container With Most Water
- LeetCode Container With Most Water
- [Leetcode] Container With Most Water
- [LeetCode]Container With Most Water
- LeetCode-Container With Most Water
- Container With Most Water leetcode
- LeetCode - Container With Most Water
- LeetCode: Container With Most Water
- Leetcode: Container With Most Water
- 【LeetCode】Container With Most Water
- Leetcode: Container With Most Water
- C#调用WPS的两种方式
- 【二十】二叉树及其性质
- JAVA书籍
- JS方法代理
- mac系统如何显示和隐藏文件
- leetcode:Container With Most Water 6行AC
- Qt Creater调试时一直出现:“DEBUGGER: Waiting for debug socket connect” 和“DEBUGGER: go to sleep”
- Hibernate封装通用数据操作基类DAO
- vs中使用qt的qrc生成rcc资源文件
- JAVA_Proxy_DEMO
- 数据库模型
- 报表示例——用Jasper report实现MongoDB join
- 互联网+,空间,智商和类脑三个维度的递增进化
- 学习笔记(五)接口与内部类(二)