BEAT 100% ULTRA SHORT, EASY BRUTE - FORCE APPROACH ✅✅
BEAT 100%\n\n\n# Code\ncpp []\nclass Solution {\npublic:\n    vector<int> minBitwiseArray(vector<int>& nums) {\n        for (int i = 0; i < nums.size(); i++) {\
# BEAT 100%\n![Screenshot (102).png](https://assets.leetcode.com/users/images/28d2a712-3233-43be-8d1c-35bb97c66dc4_1729001026.494323.png)\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    vector<int> minBitwiseArray(vector<int>& nums) {\n        for (int i = 0; i < nums.size(); i++) {\n            if (nums[i] % 2 == 0)\n                nums[i] = -1;\n            else\n                nums[i] = nums[i] - ((nums[i] + 1) & (-nums[i] - 1)) / 2;\n        }\n        return nums;\n    }\n};\n```\n\n# --- PLEASE UPVOTE SIR ---\n![478xve.jpg](https://assets.leetcode.com/users/images/5ec271e5-1423-4d35-a4f3-ebd7a5175e5d_1729000959.9025586.jpeg)\n
['C++']