You are viewing a single comment's thread. Return to all comments →
to avoid even more unnecessary computations:
len(list(set(arr))) -> len(set(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 →
to avoid even more unnecessary computations:
len(list(set(arr))) -> len(set(arr))