Maximum sum of absolute difference of any permutation
Given an array, we need to find the maximum sum of the absolute difference of any permutation of the given array. Examples: Input : { 1, 2, 4, 8 } Output : 18 Explanation : For the given array there are several sequence possible like : {2, 1, 4, 8} {4, 2, 1, 8} and some more. Now, the absolute diffe