15 3Sum(medium)

 Given an array S of n integers, are there elements abc in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.

给定n个整数的数组S,S中有元素a,b,c,使得+ b + c = 0? 查找数组中所有独特的三元组,给出的和为零。

 

posted @ 2017-10-20 17:30  WegYcx  阅读(90)  评论(0编辑  收藏  举报