You are viewing a single comment's thread. Return to all comments →
Here is my Python solution!
def minimumAbsoluteDifference(arr): arr.sort() differences = [] for i in range(1, len(arr)): differences.append(abs(arr[i] - arr[i - 1])) return min(differences)
Seems like cookies are disabled on this browser, please enable them to open this website
Minimum Absolute Difference in an Array
You are viewing a single comment's thread. Return to all comments →
Here is my Python solution!