You are viewing a single comment's thread. Return to all comments →
#python 3 solution from itertools import pairwise def minimumAbsoluteDifference(arr): return min(b-a for a,b in pairwise(sorted(arr)))
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 →