Beats 100% | Simple short code
IntuitionApproachComplexity
Time complexity:O(n)

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

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

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

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

# Code
```python3 []
class Solution:
    def minElement(self, nums: List[int]) -> int:
        def get_sum(n):
            res = 0
            while n :
                res += n % 10
                n = n//10
            return res
        res = float("inf")
        for n in nums:
            res = min(res, get_sum(n))
        return res

        
```
['Python3']