โ† PayU questions

Find pairs with modulo remainder K

Filed under PayU

The question

Given an array of integers, find all pairs (a, b) such that (a % b) equals a given input k, with an expected O(N) solution.

No write-up yet. Related questions below have one.

Related PayU questions

Collected from public candidate posts and coding forums. Updated Nov 2026.