Count Good Pairs — October 3, 2026
Given an array of integers nums, a pair (i, j) is called a good pair if nums[i] == nums[j] and i < j. Return the number of good pairs. Input: An array of integers nums. Constraints: 1 <= nums.length <= 100 1 <= nums[i] <= 100 Output: An integer representing the total count of good pairs. Example: In
