## Minimum Absolute Difference Queries Leetcode Solution

Minimum Absolute Difference Queries The minimum absolute difference of an array a is defined as the minimum value of |a[i] – a[j]|, where 0 <= i < j < a.length and a[i] != a[j]. If all elements of a are the same, the minimum absolute difference is -1. For example, the minimum absolute difference of the array [5,2,3,7,2] is |2 – 3| = 1. Note that it is not 0 because a[i] and a[j] must be different. You … Read more