LeetCode Brush Questions 1512. The number of good pairs
I don't know where I am going, but I am already on my way!
Time is hurried, although I have never met, but I met Yusi, it is really a great fate, thank you for your visit!
Subject : Give you an array of integers nums. If a set of numbers (i,j)meet nums[i] == nums[j], and i < jyou can think that this is a good set of number pairs. Returns the number of good pairs.