Recently got this problem in an OA, couldn't solve.

Revision en1, by deepak_prakash, 2023-10-12 19:42:29

Hey, I recently got this problem in an online assessment.

Count number of subarrays such that, xor of first and last element of subarray should be equal to xor of remaining elements in the subarray. And the minimum size of subarray in consideration would be greater than equal to 3.

Thanks

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English deepak_prakash 2023-10-12 19:42:29 347 Initial revision (published)