NeetCode #867LC-1310MediumBit Manipulation
← Back to All Problems

#867 · #1310 · XOR Queries of a Subarray(子数组异或查询)

📌 Problem Statement & Constraints

Given an array arr and an array of queries where queries[i] = [left, right], return an array holding the XOR of arr[left..right] for each query. Constraints: 1 <= arr.length, queries.length <= 3 * 10^4, 0 <= arr[i] <= 10^9, 0 <= left <= right < arr.length.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!