Given a nums, a pair of indices (i, j) is considered a bad pair if nums[j] nums[i].
Return the total number of bad pairs in nums.
Constraints:
nums.length
nums[i]
Given a nums, a pair of indices (i, j) is considered a bad pair if nums[j] nums[i].
Return the total number of bad pairs in nums.
Constraints:
nums.length
nums[i]