Intuitive ones without converting to string and replacement
IntuitionSimply use / % calculation of interger, without converting to string, and also without a real "replacement" by iterating the minimum sum of digits dire
# Intuition
Simply use / % calculation of interger, without converting to string, and also without a real "replacement" by iterating the minimum sum of digits directly.

# Approach
Calculate the digit sum for each number inside integer array, and iterate the sum of digits.

# Complexity
- Time complexity:
O(N)

- Space complexity:
O(1)

# Code
```cpp []
class Solution {
public:
    int minElement(vector<int>& nums) {
        int ans = INT_MAX;
        for (int num : nums) {
            int dSum = 0;
            while (num > 0) {
                dSum += num % 10;
                num /= 10;
            }
            ans = min(ans, dSum);
        }
        return ans;
    }
};
```
['C++']