1995. Count Special Quadruplets
https://leetcode.com/problems/count-special-quadruplets
Description
Given a 0-indexed integer array nums
, return the number of distinct quadruplets (a, b, c, d)
such that:
nums[a] + nums[b] + nums[c] == nums[d]
, anda < b < c < d
Example 1:
Example 2:
Example 3:
Constraints:
4 <= nums.length <= 50
1 <= nums[i] <= 100
ac
Last updated