3513. Number of Unique XOR Triplets I
You are given an integer array
numsof lengthn, wherenumsis a permutation of the numbers in the range[1, n].A XOR triplet is defined as the XOR of three elements
nums[i] XOR nums[j] XOR nums[k]wherei <= j <= k.Return the number of unique XOR triplet values from all possible triplets
(i, j, k).A permutation is a rearrangement of all the elements of a set.
1 | class Solution { |