Python Bruteforce
\nclass Solution:\n    def minBitwiseArray(self, nums: List[int]) -> List[int]:\n        res=[]\n        for x in nums:\n            if x%2==0:\n               
```\nclass Solution:\n    def minBitwiseArray(self, nums: List[int]) -> List[int]:\n        res=[]\n        for x in nums:\n            if x%2==0:\n                res.append(-1)\n            else:\n                for y in range(1,x):\n                    if y | (y+1) ==x:\n                        res.append(y)\n                        break\n                    \n        return res\n```
['Python3']