MinElement easy and simple solution in C || 100% Beat
Solution in CCode
# Solution in C

# Code
```c []
int minElement(int* nums, int numsSize) {
    int* arr = (int*)malloc(numsSize * sizeof(int));
    int rem = 0;
    int value = 0;
    for (int i = 0; i < numsSize; i++) {
        int sum = 0;
        int num = nums[i];

        while (num) {
            rem = num % 10;
            sum += rem;
            num /= 10;
        }
        arr[i] = sum;
    }
    value = arr[0];
    for (int i = 1; i < numsSize; i++) {
        if (arr[i] < value) {
            value = arr[i];
        }
    }
    free(arr);
    return value;
}
```
['Array', 'Math', 'C']