问题
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:
The solution set must not contain duplicate triplets.
1 | Example: |
解决方案
1 |
|
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:
The solution set must not contain duplicate triplets.
1 | Example: |
1 |
|
本文标题:15.ThreeSum
文章作者:LiuXiaoKun
发布时间:2018年09月25日 - 23:09
最后更新:2019年02月13日 - 16:02
原始链接:https://LiuZiQiao.github.io/2018/09/25/ThreeSum/
许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。