Problem 1913 · Easy

Maximum Product Difference Between Two Pairs

Maximize the difference between two products formed from four distinct positions in an array. The visual sorts the values, highlights the two largest and two smallest, and shows the two products side by side.

Open the interactive visualisation