Easiest Way !!!!!!
IntuitionApproachComplexity

Time complexity:
96%+++


Space complexity:
97%++

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

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

# Complexity
- Time complexity:
96%+++

- Space complexity:
97%++

# Code
```java []
class Solution {
    public double minimumAverage(int[] nums) {
        Arrays.sort(nums);
        int n=nums.length;
       double min = Double.MAX_VALUE;
       for(int i=0;i<n/2;i++)
       {
         double sum= (nums[i]+nums[n-1-i])/2.0;
         min=Math.min(sum,min);
       }return min;
    }
}
```
['Java']