Count the pairs (a, b) whose sums and differences relate to their absolute values in a "perfect" way — sort by absolute value and use two pointers.
Count the pairs (a, b) whose sums and differences relate to their absolute values in a "perfect" way — sort by absolute value and use two pointers.
The discussion opens with the full question.