You are viewing a single comment's thread. Return to all comments →
I ended up with this approach as well (except the 2nd step where I just pick a very large num), though I don't think this is a greedy algorithm.
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 →
I ended up with this approach as well (except the 2nd step where I just pick a very large num), though I don't think this is a greedy algorithm.