[C++][Bit manipulation]
\n\n# Code\ncpp []\nclass Solution {\n    inline int minBitwise(const int n){\n        if (n==2) return -1;\n\n        int idx=0;\n        while ((n & (1<<idx))
\n\n# Code\n```cpp []\nclass Solution {\n    inline int minBitwise(const int n){\n        if (n==2) return -1;\n\n        int idx=0;\n        while ((n & (1<<idx))!=0) idx++;\n        idx--;\n\n        int mask = ~(1<<idx);\n        return (n&mask);\n    }\npublic:\n    vector<int> minBitwiseArray(vector<int>& nums) {\n        vector<int> ans;\n        for (const auto n: nums) ans.push_back(minBitwise(n));\n        return ans;\n    }\n};\n```
['C++']