Count Pairs With Sum Divisible by X
Asked at Amazon · Coding Questions · Difficulty: Easy
Count the pairs of indices `i < j` whose price sum `prices[i] + prices[j]` is divisible by `x`.
Loading the problem…
Asked at Amazon · Coding Questions · Difficulty: Easy
Count the pairs of indices `i < j` whose price sum `prices[i] + prices[j]` is divisible by `x`.
Loading the problem…