You are viewing a single comment's thread. Return to all comments →
return(min([abs(x[0]-x[1]) for x in combinations(arr,2)])) this one line giving me timeout cases
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 →
return(min([abs(x[0]-x[1]) for x in combinations(arr,2)])) this one line giving me timeout cases