You are viewing a single comment's thread. Return to all comments →
It's sorted so you can do 'windows[1] - window[0]' and skip the abs().
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 →
It's sorted so you can do 'windows[1] - window[0]' and skip the abs().