[Python] Brute force
\nclass Solution:\n    def minBitwiseArray(self, nums: List[int]) -> List[int]:\n        ans = []\n\n        for n in nums:\n            for x in range(n):\n   
```\nclass Solution:\n    def minBitwiseArray(self, nums: List[int]) -> List[int]:\n        ans = []\n\n        for n in nums:\n            for x in range(n):\n                if x | (x + 1) == n:\n                    ans.append(x)\n                    break\n            else:\n                ans.append(-1)\n\n        return ans\n```
['Python']