Find minimum difference between any two elements in an array
Answers
Answered by
1
For an element x present at index i in the array its minimum absolute difference is calculated as: Min absolute difference (x) = min(abs(x – arr[j])), where 1 <= j <= n and j != i and abs is the absolute value.
Please make me as a brainlist Answer
Similar questions