Minimum element after replacement with digit sum
Code


# Code
```python3 []
class Solution:
    def minElement(self, nums: List[int]) -> int:
        ans=[]
        for i in nums:
            c=0
            for j in str(i):
                c+=int(j)
            ans.append(c)
        return min(ans)
```
['Python3']