摘要:
Given an array of n integers nums and a target, find the number of index triplets i, j, k with 0 <= i < j < k < n that satisfy the condition nums[i] + 阅读全文
posted @ 2017-01-27 15:03
CodesKiller
阅读(104)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2017-01-27 14:09
CodesKiller
阅读(131)
评论(0)
推荐(0)
摘要:
Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure.find 阅读全文
posted @ 2017-01-27 12:04
CodesKiller
阅读(183)
评论(0)
推荐(0)
摘要:
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文
posted @ 2017-01-27 08:32
CodesKiller
阅读(121)
评论(0)
推荐(0)
摘要:
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 have ex 阅读全文
posted @ 2017-01-27 08:07
CodesKiller
阅读(161)
评论(0)
推荐(0)
浙公网安备 33010602011771号