Search
⌘K

Leetcode 1486. XOR Operation in an Array

Compute the bitwise XOR of the n-element array defined by nums[i] = start + 2*i (an arithmetic progression with step 2). The task tests using XOR properties and periodic patterns to derive the result without explicitly constructing the whole array.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.