Python Solution
\ndef getSumAbsoluteDifferences(self, nums: List[int]) -> List[int]:\n        if not nums:\n            return nums\n        rightsum=sum(nums)\n        leftsum
```\ndef getSumAbsoluteDifferences(self, nums: List[int]) -> List[int]:\n        if not nums:\n            return nums\n        rightsum=sum(nums)\n        leftsum=0\n        res=[]\n        n=len(nums)\n        for i in range(n):\n            leftsum+=nums[i]\n            rightsum-=nums[i]\n            temp=abs(leftsum-(nums[i]*(i+1)))+abs(rightsum-(nums[i]*(n-(i+1))))\n            res.append(temp)\n        return res\n```
[]