Python3 | 4ms | Beats 99%
Code\npython3 []\nclass Solution:\n    def minBitwiseArray(self, nums: List[int]) -> List[int]:\n        result = []\n\n        for n in nums:\n            if n
# Code\n```python3 []\nclass Solution:\n    def minBitwiseArray(self, nums: List[int]) -> List[int]:\n        result = []\n\n        for n in nums:\n            if n % 2 == 0:\n                result.append(-1)\n                continue\n\n            i = 0\n            while n & (1 << i) != 0:\n                i += 1\n\n            result.append((1 << (i - 1)) ^ n)\n\n        return result\n```
['Python3']