HTMLify
LeetCode - Find the Number of Good Pairs - Go
Views: 318 | Author: abh
1 2 3 4 5 6 7 8 9 10 11 | func numberOfPairs(nums1 []int, nums2 []int, k int) int { var count int for _, i := range nums1 { for _, j := range nums2 { if i % (j*k) == 0 { count++ } } } return count } |