You are viewing a single comment's thread. Return to all comments →
def minimumAbsoluteDifference(arr): # Write your code here arr.sort() ai = [] for i in range(len(arr)): a = abs(arr[i]-arr[i-1]) ai.append(a) return min(ai)
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 →