diff --git "a/leetcode3/\354\227\274\355\230\234\354\240\225/3314. Construct the Minimum Bitwise Array I.java" "b/leetcode3/\354\227\274\355\230\234\354\240\225/3314. Construct the Minimum Bitwise Array I.java" new file mode 100644 index 00000000..b101516b --- /dev/null +++ "b/leetcode3/\354\227\274\355\230\234\354\240\225/3314. Construct the Minimum Bitwise Array I.java" @@ -0,0 +1,20 @@ +// O(n) + +class Solution { + public int[] minBitwiseArray(List nums) { + int[] result = new int[nums.size()]; + for (int i = 0; i> k) & 1) == 0) { + result[i] = num ^ (1 << (k-1)); + break; + } + } + } + } + return result; + } +}