easy code
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    vector<int> minBitwiseArray(vector<int>& nums) {\n        int size = nums.size(), temp;\n\n        for( int i =0 ; i< size; i++)\n        {\n            for( int j =1 ; j< nums[i] ;j ++)\n            {\n                if( (j | (j+1)) == nums[i])\n                   {cout<< (j | (j+1)) <<"  ";\n                    temp =j;\n                   break;}\n                else temp = -1;\n            }\n            nums[i ] =temp;\n        }\n\n        return nums;\n    }\n};\n```
['C++']