![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
two-pointe
huilaner
这个作者很懒,什么都没留下…
展开
-
【小熊刷题】Container with Most Water <Leetcode 11, Java>
QuestionGiven 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)...原创 2015-09-11 09:49:53 · 531 阅读 · 0 评论 -
【小熊刷题】3Sum Closest <Leetcode 16, Java>
QuestionGiven an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers.原创 2015-09-12 02:56:59 · 368 阅读 · 0 评论 -
【小熊刷题】Remove Nth Node From End of List <Leetcode 19, Java>
QuestionGiven a linked list, remove the nth node from the end of list and return its head.For example,Given linked list: 1->2->3->4->5, and n = 2.After removing the second node from the end, the linked原创 2015-09-12 04:15:25 · 281 阅读 · 0 评论