摘要: 题目: Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4, 1,1] return 2. Your algor 阅读全文
posted @ 2018-03-16 22:52 Ping的博客 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 3Sum: 题目: Given 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 阅读全文
posted @ 2018-03-16 22:47 Ping的博客 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 e 阅读全文
posted @ 2018-03-16 22:38 Ping的博客 阅读(85) 评论(0) 推荐(0) 编辑