[LeetCode] 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] <
posted @ 2023-11-24 03:03  CNoodle  阅读(38)  评论(0编辑  收藏  举报