You are viewing a single comment's thread. Return to all comments →
#python def minimumAbsoluteDifference(arr): arr.sort() m=1000000 for i in range(len(arr)-1): d=abs(arr[i]-arr[i+1]) if d<m: m=d 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 →