You are viewing a single comment's thread. Return to all comments →
Python
def minimumAbsoluteDifference(arr): arr.sort() m=float('inf') for i in range(1, len(arr)): m=min(m, arr[i]-arr[i-1]) return m
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 →
Python