AlgoMaster Logo

Number of Good Pairs

nums=[1, 2, 3, 1, 1, 3]
0 / 17
algomaster.io
Step:A pair (i, j) is "good" when nums[i] = nums[j] and i < j