✨🚀 Easy || 💯 Beats 100% Beginner C++ 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```\nclass Solution {\npublic:\n    double minimumAverage(vector<int>& nums) {\n        double x = INT_MAX;\n        sort(nums.begin(), nums.end());\n        for(int i = 0; i < nums.size() / 2; i++) {\n            x = min(x, (nums[i] + nums[nums.size() - 1 - i]) / 2.0);\n        }\n        return x;\n    }\n};\n```
['C++']