Array
1200. Minimum Absolute Difference
Given an array of distinct integers, return all pairs [a,b] (a<b, sorted) achieving the minimum absolute difference. The all-pairs scan is O(n²), but sorting reveals that the minimum difference must…
Loading…