python solution
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```python3 []
class Solution:
    def getLargestOutlier(self, nums: List[int]) -> int:
        val = sum(nums)
        counter = Counter(nums)
        res = - inf
        for n in nums:
            remain = val - n
            if remain % 2 == 0 and remain // 2 in counter:
                if remain // 2 != n or (remain // 2 == n and counter[n] >= 2):
                    res = max(res, n) 
        return res
```
['Python3']