Simple C program
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

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

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

# Code
```c []
int maximumDifference(int* nums, int numsSize) {
    int maxd=-1,minval;
    for(int i=0;i<numsSize-1;i++){
        for(int j=i+1;j<numsSize;j++){
        if(nums[i]<nums[j]){
        minval=nums[j]-nums[i];
        if(minval>maxd){
            maxd=minval;
        }}
    }}
    return maxd;
}
```
['C']