Every season at the cotton rows of Whitewick, someone must track down a clerical error. This year the task falls to Minstrel, armed only with the ledgers register. Task: Print the minimum absolute difference between any two array elements. Input format: First line: n (>=2). Second line: n integers. Output format: Print the minimum pairwise absolute difference. Constraints: 2 <= n <= 6426; 0 <= a[i] <= 1000000.
Example 1:
Example 2:
Example 3:
Constraints:
2 <= n <= 6426; 0 <= a[i] <= 1000000.
