LeetCode - Number of Good Pairs
摘要:
Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input: nums 阅读全文
posted @ 2021-02-20 16:04 IncredibleThings 阅读(30) 评论(0) 推荐(0) 编辑