[LeetCode] 2563. Count the Number of Fair Pairs

Given a 0-indexed integer array nums of size n and two integers lower and upper, return the number of fair pairs. A pair (i, j) is fair if: 0 <= i < j
posted @ 2023-11-24 08:06  CNoodle  阅读(11)  评论(0编辑  收藏  举报