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