Beginner Friendly Solution | Using deque | beats 100%
\n\n# Code\n\nclass Solution:\n    def minimumAverage(self, nums: List[int]) -> float:\n        nums.sort()\n        dq = deque(nums)\n        res = 10 ** 9\n  
\n\n# Code\n```\nclass Solution:\n    def minimumAverage(self, nums: List[int]) -> float:\n        nums.sort()\n        dq = deque(nums)\n        res = 10 ** 9\n        while(dq):\n            a = dq.popleft() #max ele\n            b = dq.pop() #min ele\n            avg = (a + b) / 2\n            if avg < res:\n                res = avg\n\n        \n        return res\n```
['Queue', 'Python3']