Available question text
Given an array and many queries [left, right], return the XOR of elements in each subarray arr[left..right]. Precompute a prefix-xor array to answer each query in O(1) after O(n) preprocessing, suitable for large inputs.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1310. XOR Queries of a Subarray
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source