You are viewing a single comment's thread. Return to all comments →
def divisibleSumPairs(n, k, ar): count = 0 for index, i in enumerate(ar): for j in ar[index+1:]: if (i + j) % k == 0: count+=1 return count
Seems like cookies are disabled on this browser, please enable them to open this website
Divisible Sum Pairs
You are viewing a single comment's thread. Return to all comments →