You are viewing a single comment's thread. Return to all comments →
If the array is already sorted, there is no need to use abs for a[i] - a[i-1].
Closest Numbers
You are viewing a single comment's thread. Return to all comments →
If the array is already sorted, there is no need to use abs for a[i] - a[i-1].