Ezvor

3632. Subarrays with XOR at Least K

HardArray Preparing judge… LeetCode
ArrayBit ManipulationTriePrefix Sum

Hints

Hint 1
Use a prefix XOR array
Hint 2
For each ending index, count how many subarrays have XOR >= k
Hint 3
Use a Trie to query those counts efficiently