双指针
HCacm
这个作者很懒,什么都没留下…
展开
-
leetcode 19. Remove Nth Node From End of List
相关问题Discription Given a linked list, remove the n-th 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, t原创 2017-10-29 15:53:50 · 284 阅读 · 0 评论 -
leetcode 15. 3Sum
相关问题1. Two Sum 15. 3SumDiscription Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: The原创 2017-10-18 21:49:37 · 234 阅读 · 0 评论 -
leetcode 11. Container With Most Water
相关问题Discription Given n non-negative integers a1,a2,...,ana_1, a_2, ..., a_n, where each represents a point at coordinate (i,ai)(i, a_i). nn vertical lines are drawn such that the two endpoints of line原创 2017-10-14 16:55:55 · 179 阅读 · 0 评论 -
leetcode 42. Trapping Rain Water
相关问题 11. Container With Most Water 42. Trapping Rain Water 407. Trapping Rain Water IIDiscription Given n non-negative integers representing an elevation map where the width of each bar is 1, compute原创 2017-10-14 19:10:40 · 229 阅读 · 0 评论