- Source : Link
- Author : Han
- Date : 2022-02-04
Problems
Given an array nums of n integers, return an array of all the uniquequadruplets [nums[a], nums[b], nums[c], nums[d]] such that:
0 <= a, b, c, d < na,b,c, anddare distinct.nums[a] + nums[b] + nums[c] + nums[d] == target
You may return the answer in any order.
Example 1:
1 | |
Example 2:
1 | |
Solution
1 | |