Easy solution using JS
IntuitionApproachComplexity
Time complexity: 4 ms

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

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

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

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

# Code
```javascript []
/**
 * @param {number[]} nums
 * @return {number}
 */
var minimumAverage = function (nums) {
    let res = []
    nums = nums.sort((a, b) => a - b)

    for (let i = 0; i < nums.length; i++) {
        res.push((nums[i] + nums[nums.length - 1 - i]) / 2)

    }

    return Math.min(...res)
};
```
['JavaScript']