Problem 1200 · Easy

Minimum Absolute Difference

In a list of distinct integers, find the smallest gap between any two values and list every pair that achieves it in increasing order. The visual sorts the values and marks the adjacent gaps.

Open the interactive visualisation