DEV Community

Abhishek Shrivastava
Abhishek Shrivastava

Posted on

minimum difference pair

Given an array of numbers, return the pair of numbers that give the minimum absolute difference. Return the pair as an array, sorted in ascending order. If multiple pairs have the same difference, return the pair with the smallest sum.

Top comments (0)