You are given a nums. In a single operation, you may select any non negative integer x and an index i, and update nums[i] to nums[i] AND (nums[i] XOR x).
You may perform this operation any number of times on any indices.
Return the maximum possible bitwise XOR sum of all elements in nums after applying the operation any number of times.
Constraints:
nums.length
nums[i]
You are given a nums. In a single operation, you may select any non negative integer x and an index i, and update nums[i] to nums[i] AND (nums[i] XOR x).
You may perform this operation any number of times on any indices.
Return the maximum possible bitwise XOR sum of all elements in nums after applying the operation any number of times.
Constraints:
nums.length
nums[i]