Transform-Reduce
C++\ncpp\nint minElement(vector<int>& nums) {\n    return transform_reduce(begin(nums), end(nums), INT_MAX, [](int a, int b){ return min(a, b); }, [](int n) {\n
**C++**\n```cpp\nint minElement(vector<int>& nums) {\n    return transform_reduce(begin(nums), end(nums), INT_MAX, [](int a, int b){ return min(a, b); }, [](int n) {\n        int sum = 0;\n        for (; n; n /= 10)\n            sum += n % 10;\n        return sum;\n    });\n}\n```
['C']