Simple Python Solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity: O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution(object):\n    def minimumAverageDifference(self, nums):\n        """\n        :type nums: List[int]\n        :rtype: int\n        """\n        end = 0\n        front = 0\n        mindif = 100000000000\n        location = 0\n\n        for x in nums:\n            end += x\n\n        for x in range(len(nums)):\n            front += nums[x]\n            end -= nums[x]\n            if x == len(nums) - 1:\n                currdif = front/len(nums)\n            else:\n                currdif = abs((front/(x+1)) - (end/(len(nums)-(x+1))))\n            if currdif < mindif:\n                mindif = currdif\n                location = x \n \n        return location\n```
['Python']