The task is to find the maximum three in the array (multiplying three numbers so that their products are the largest).
Array length can be up to 1.000.000
Range of numbers from -1.000.000 to 1.000.000
Question: I understand that first you need to sort the array by quick sort, and then what condition should I select the numbers?
For example, in the sequence:
-17, -12, 1, 3, 4
(-17) * (- 12) * 4
will work, that is, the multiplication of the three most significant positive numbers will be less.