Open Bipradeep02 opened 2 years ago
Provided an array A, shuffle all the elements and create a new array B in such a way that each element B[i] is (A[i] + i)%2 . Now find the maximum possible sum of integers of the array B, if you shuffle the array optimally.
Provided an array A, shuffle all the elements and create a new array B in such a way that each element B[i] is (A[i] + i)%2 . Now find the maximum possible sum of integers of the array B, if you shuffle the array optimally.