You are viewing a single comment's thread. Return to all comments →
Python 3
def minimumAbsoluteDifference(arr): arr.sort() return min(abs(a - b) for a, b in zip(arr, arr[1:]))
Minimum Absolute Difference in an Array
You are viewing a single comment's thread. Return to all comments →
Python 3