2824. Count Pairs Whose Sum is Less than Target
Given a 0-indexed integer array
nums
of lengthn
and an integertarget
, return the number of pairs(i, j)
where0 <= i < j < n
andnums[i] + nums[j] < target
.
1 | class Solution { |
2824. Count Pairs Whose Sum is Less than Target
Given a 0-indexed integer array
nums
of lengthn
and an integertarget
, return the number of pairs(i, j)
where0 <= i < j < n
andnums[i] + nums[j] < target
.
1 | class Solution { |