Python with multiple IF ELSE | Faster than 72%
\nclass Solution:\n    def getStrongest(self, arr: List[int], k: int) -> List[int]:\n        arr.sort()\n\n        if len(arr) == 1: return arr\n\n        resul
```\nclass Solution:\n    def getStrongest(self, arr: List[int], k: int) -> List[int]:\n        arr.sort()\n\n        if len(arr) == 1: return arr\n\n        result_ = []\n        num = 0\n        i = 0\n        j = len(arr) - 1\n        m = arr[int((len(arr)-1)/2)]\n        new_arr = [abs(x - m) for x in arr]\n\n        while i < len(arr) and j > 0 and num < k :\n            if new_arr[i] > new_arr[j]:\n                result_.append(arr[i])\n                i += 1\n            elif new_arr[i] < new_arr[j]:\n                result_.append(arr[j])\n                j -= 1\n            else:\n                if arr[i] > arr[j]:\n                    result_.append(arr[i])\n                    i += 1\n                else:\n                    result_.append(arr[j])\n                    j -= 1\n            num = int(len(result_))\n        return result_\n\t```
[]