自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

转载 474. Ones and Zeroes

There is an array filled with strings, each string is composed with '0' and '1'. Given m '0' and n '1', return maximum number of strings can we compose using the given ones and zeros. Solution O...

2017-01-12 02:54:00 83

转载 18 & 454. 4Sum I & II

18. 4Sum I (32lines) Given a integer array and target, find all unique quadruplets sum is target. Solution(O(N^3)): Similar as 3sum problem, add one more loop and be careful about the duplicat...

2017-01-11 04:47:00 61

转载 Programming logic Corrector

1. Think carefully about the variables used for different range, they may represent same value in the meaning, but they are used in different range, so they have different values actually. 转载于:h...

2017-01-11 01:55:00 57

转载 15 & 16. 3Sum & 3Sum Cloest

3Sum Given a integer array, find all the unique 3-number pairs which sum = 0. Solution O(N^2): 1. Sort the array, and makes this problem to a equal '2sum sorted' problem a1 + a2 = -a3(target) ...

2017-01-11 01:51:00 87

转载 1 & 167. Two Sum I & II ( Input array is sorted )

There is an array with integers, if there is sum of two numbers equals target, return true; if there is not, return false. Solution: Input array is sorted: O(NlogN) Use binary search or...

2017-01-10 11:02:00 67

转载 JAVA Grammar Corrector

1. Integer.MAX_VALUE, Integer.MIN_VALUE 2. int[] res = {1,2} can only be used in the initialization, assignment can only use the res[0] = 1 转载于:https://www.cnblogs.com/CornerCase/p/6268367.htm...

2017-01-10 10:22:00 74

转载 456. 132 Pattern

456. 132 Pattern Given an array of integers a1, a2, a3…an, judge if there exists the 132 pattern. 132 pattern is ai < ak < aj, in which i < j < k. Solution: refer: https://dis...

2017-01-10 09:53:00 52

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除