C++ 100%
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    int solve(int num) {\n        if (num == 2) return -1;\n        long long tmp = 1;\n        while(tmp < num) {\n            if ((num & tmp) == 0) {\n                num = num - (tmp / 2);\n                return num;\n            }\n            tmp = tmp * 2;\n        }\n        return num / 2;\n    }\n\n    vector<int> minBitwiseArray(vector<int>& nums) {\n        vector<int> ans;\n        for (auto &it : nums) {\n            ans.push_back(solve(it));\n        }\n        return ans;\n    }\n};\n```
['C++']