摘要: LeetCode11-Container With Most WaterMedium两点法两点法,规定两点构建初始枚举范围,然后通过题目特点,移动(舍弃)其中一点,缩小枚举范围,直至不能继续枚举。比较过程中产生的结果值,得到正确答案。题目链接: https://leetcode.com/problems/container-with-most-water/ 1 题面Given n non-ne... 阅读全文
posted @ 2020-02-24 11:21 Jianzs 阅读(52) 评论(0) 推荐(0)