Simple | Beats 100%
Code\npython3 []\nclass Solution:\n    def minBitwiseArray(self, nums: List[int]) -> List[int]:\n        res = []\n\n        for num in nums:\n            for i
# Code\n```python3 []\nclass Solution:\n    def minBitwiseArray(self, nums: List[int]) -> List[int]:\n        res = []\n\n        for num in nums:\n            for i in range(num):\n                if i | (i+1) == num:\n                    res.append(i)\n                    break\n            else:\n                res.append(-1)\n        \n\n        return res\n```
['Python3']