Rearrange an array to minimize sum of product of consecutive pair elements
We are given an array of even size, we have to sort the array in such a way that the sum of product of alternate elements is minimum also we have to find that minimum sum. Examples: Input : arr[] = {9, 2, 8, 4, 5, 7, 6, 0} Output : Minimum sum of the product of consecutive pair elements: 74 Sorted a