摘要:
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 m 阅读全文
posted @ 2017-01-11 04:47
CornerCase
阅读(215)
评论(0)
推荐(0)
摘要:
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, s 阅读全文
posted @ 2017-01-11 01:55
CornerCase
阅读(114)
评论(0)
推荐(0)
摘要:
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 '2 阅读全文
posted @ 2017-01-11 01:51
CornerCase
阅读(241)
评论(0)
推荐(0)

浙公网安备 33010602011771号