Count Number of Bad Pairs

mediumSolve on LeetCodeLast edited: August 2, 2025