Java || Runtime - 100% || Memory - 87.98%
Complexity
Time complexity: O(n)

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

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

# Code
```java []
class Solution {
    public int minElement(int[] nums) {
        int min = Integer.MAX_VALUE;
        for(int num : nums){
            int sum = 0;
            while(num > 0){
                int digit = num % 10;
                sum += digit;
                num/=10;
            }
            min = Math.min(min , sum);
        }
        return min;
    }
}
```
['Array', 'Math', 'Java']