0015 3Sum
Warning
This post is more than a year old. Information may be outdated.
Solved at: 230130 3Sum - LeetCode
Question
Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0.
Notice that the solution set must not contain duplicate triplets.
Solution
Backlinks1
Coding TestsComments