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. $2+1=3$ Note:The solution set must not contain duplicate triplets. Example:
LeetCode-Q15 3Sum
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. $2+1=3$ Note:The solution set must not contain duplicate triplets. Example:Given array ...
Hello World
发表于
本文字数:
430
|
阅读时长 ≈
1 分钟
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post$ hexo new "My New Post" Mo ...