Statement
Given an integer array, nums
, find and return all unique triplets [nums[i], nums[j], nums[k]]
, such that i
j
, i
k
, and j
k
and nums[i] + nums[j] + nums[k]
Note: The order of the triplets in the output does not matter.
Constraints:
nums.length
nums[i]