#3162
Find the Number of Good Pairs I
newbie · 120 · lc easy +12 · 86.3% accepted · 164 likes · top 97%
Description
Given integer arrays nums1 (length n) and nums2 (length m) and a positive integer k, a pair (i, j) is good when nums1[i] is evenly divisible by nums2[j] * k. Return the total count of good pairs.
Code
1
2
3