3314. Construct the Minimum Bitwise Array I
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```python3 []
class Solution:
    def minBitwiseArray(self, nums: List[int]) -> List[int]:
        ans = []
        
        for num in nums:
            found = False
            for candidate in range(num):
                if (candidate | (candidate + 1)) == num:
                    ans.append(candidate)
                    found = True
                    break
            if not found:
                ans.append(-1)
        
        return ans

```
['Python3']