[Discussion] Trying to formulate an expression, and solving my query
Problem\nIf you haven\'s solved the question yet please solve it and then come to this answer afterwards. With this post I am trying to address some common quer
# Problem\nIf you haven\'s solved the question yet please solve it and then come to this answer afterwards. With this post I am trying to address some common queries and trying to find a mathematical intutition for the problem which I myself am not able to find.\n# Queries\nI see everybody who submitted this kind of used a same approach and all of them have lead to the soln based on intutiion only. But at the end of the day I am trying to answer for following problems and here your ideas :\n\nI believe everyone understand here that answer ideally don\'t depends on left and right nearest palindromes to median if your media itself is palindrome\n\n1. Can there be some mathematical reasoning or formulation for the problem that why in case of odd elems always the middle elem is the answer. \n2.  Considera a testcase \n```\n[2,3,555,10111296,127974829]\n```\nIn this if you see the median in 555 so obvio all elements need to converge and diverge towards 555 only and conclude an answer.\nBut the interesting part is that all the palindromes: 545,532,525 or 565,575 all will lead to a same answer of 138086120. \n3. Why skewing of the elements towards right or left doesn\'t matter at all. If elems on right or left are very high and low respectively that ideally will not lead to answer\n\n# My-intution\nQuestion 1 : I don\'t know the answer I want to use this post as discussion and here your ideas.\n\nQuestion 2: When middle element is palindrome and nums is oddd then answer will always be same because in that case you are summing absolute difference of ith element with (n/2+i)th element where 0<=i<n. For intution you can say that you are trying to find best point on diameter    from where you can reach rightmost and leftmost point within least distance but the truth is that endpoint is always same so due to that how much variable the centre point is, it doesn\'t matter. Anyday diameter will be of fixed length
['Java']