You are given an integer array nums of length n, which is a permutation of the integers from n.
You can select any three indices i, j, and k (nums[i] ^ nums[j] ^ nums[k].
Return the total number of unique XOR values that can be formed across all possible triplets.
Constraints:
n nums.length
nums[i] n
nums is a permutation of integers from n.
You are given an integer array nums of length n, which is a permutation of the integers from n.
You can select any three indices i, j, and k (nums[i] ^ nums[j] ^ nums[k].
Return the total number of unique XOR values that can be formed across all possible triplets.
Constraints:
n nums.length
nums[i] n
nums is a permutation of integers from n.