My issue
I understood the approach of most people who are just starting the second array from the middle. I want to ask that what is the problem in writing the second array in reverse order. I did this with many values of n and always found out that the sum is same in both my way and in the way most people had done. Someone please explain me this as it is very frustrating thing. Thanks
Problem Link: https://www.codechef.com/problems/MAXDISTPERM