Beginner friendly solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```javascript []\n/**\n * @param {number[]} nums\n * @return {number}\n */\nvar minimumAverage = function(nums) {\n\n\n    let avg=[]\n\n\n    let sorted=nums.sort((a,b)=>a-b)\n\n    let arr1=sorted.slice(0,nums.length/2)\n\n    let arr2=sorted.slice(nums.length/2).reverse()\n\n    \n    \n    \n    for(let i=0;i<arr1.length;i++){\n\n        avg.push((arr1[i]+arr2[i])/2)\n    }\n\n\n    return Math.min(...avg)\n\n\n\n\n\n\n    \n};\n```
['JavaScript']