[LeetCode] Count Pairs Whose Sum is Less than Target

1 · · Aug. 19, 2023, 3:16 p.m.
2824. Count Pairs Whose Sum is Less than Target Given a 0-indexed integer array nums of length n and an integer target, return the number of pairs (i, j) where 0 <= i < j < n and nums[i] + nums[j] < target. ...