#C4904. Smallest Absolute Difference
Smallest Absolute Difference
Smallest Absolute Difference
Given an array of integers, the task is to find the smallest absolute difference between any two elements. Formally, you need to compute (\min_{1 \leq i < j \leq N} |A_i - A_j|). This problem requires careful handling of large ranges and duplicate values.
inputFormat
The first line contains a single integer (N) representing the number of elements in the array. The second line contains (N) space-separated integers.
outputFormat
Output a single integer representing the smallest absolute difference between any two elements in the array.## sample
5
3 8 -10 23 19
4
</p>