Flip farthest 1 in right to left continuous sequence
\nclass Solution {\npublic:\n    vector<int> minBitwiseArray(vector<int>& nums) {\n        vector <int> ans;\n        for(auto & it : nums){\n            if(it 
```\nclass Solution {\npublic:\n    vector<int> minBitwiseArray(vector<int>& nums) {\n        vector <int> ans;\n        for(auto & it : nums){\n            if(it == 2)\n                ans.push_back(-1);\n            else{\n                for(int i = 0; i < 32; i++){\n                    if((it & 1 << i) <= 0){\n                        ans.push_back(it ^ (1 << (i-1)));\n                        break;\n                    }\n                }\n            }\n        }\n        return ans;\n    }\n};\n```
[]