beats 90%
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 minElement(self, nums: List[int]) -> int:
        def sum_digits(n):
            count = 0
            for digit in str(n):
                count += int(digit)
            return count

        min_val = float("inf")
        for x in nums:
            if sum_digits(x) < min_val:
                min_val = sum_digits(x)
        return min_val
```
['Python3']