Python and C++ Solutions
if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n\n# Python Code\n\nclass Solution(object):\n    def minimumAverage(self, nums):\n        nums.sort()\n    
# if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n\n# Python Code\n```\nclass Solution(object):\n    def minimumAverage(self, nums):\n        nums.sort()\n        ans = 1e9\n        i, j = 0, len(nums)-1\n        while i <= j:\n            ans = min(ans, (nums[i]+nums[j])/2.0)\n            i += 1\n            j -= 1\n        return ans\n        \n```\n# C++ Code\n```\nclass Solution {\npublic:\n    double minimumAverage(vector<int>& nums) \n    {\n        sort(begin(nums), end(nums));\n        double ans = INT_MAX;\n        int i = 0, j = nums.size()-1;\n        while(i <= j)\n            ans = min(ans, (nums[i++]+nums[j--])/2.0);\n        return ans;\n    }\n};\n```
['Array', 'Two Pointers', 'Sorting', 'Python', 'C++', 'Python3']