Statement
Given an array nums of integers, return an array of all the unique quadruplets, [nums[a], nums[b], nums[c], nums[d]] such that:
-
a,b,c,d -
a,b,c, anddare distinct. -
nums[a]+nums[b]+nums[c]+nums[d]target
You may return the answer in any order.
Constraints:
-
nums.length -
nums[i] -
target