You are viewing a single comment's thread. Return to all comments →
Nope.
All it wants is:
if(ar[i] + ar[j] % k == 0)
The question clearly states that the expectation is:
if(ar[i] < ar[j] && ar[i] + ar[j] % k == 0)
This question is just awful.
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 →
Nope.
All it wants is:
if(ar[i] + ar[j] % k == 0)
The question clearly states that the expectation is:
if(ar[i] < ar[j] && ar[i] + ar[j] % k == 0)
This question is just awful.