![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LintCode
文章平均质量分 59
绿色盒子
热情的冒烟的绿色的木头的盒子
展开
-
Container With Most Water
题目# Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container.转载 2021-02-26 09:59:21 · 219 阅读 · 0 评论 -
Two Sum
题目# Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice. Example: Given nums = [2, 7, 11.转载 2021-02-25 17:55:03 · 209 阅读 · 0 评论