![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
two pointers
importsys
zjuer
展开
-
Leetcode 15. 3Sum 三数之和
Leetcode 15. 3Sum15. 3Sum题目描述示例:解答代码15. 3Sum题目描述Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the ...原创 2019-05-30 19:37:38 · 171 阅读 · 0 评论 -
Leetcode 1. Two Sum 两数之和
Leetcode 1. Two Sum1. Two Sum题目描述示例:解答代码1. 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 ...原创 2019-05-30 19:28:55 · 234 阅读 · 0 评论 -
Leetcode 11. Container With Most Water题解
4. Median of Two Sorted ArraysDescriptionGiven 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 ...原创 2019-05-28 20:59:52 · 273 阅读 · 0 评论