How to calculate XOR between each pairs of index of an array?

Revision en1, by coderbond007, 2017-05-05 17:03:10

I was solving this problem. As no editorial is provided for this solution. Can anybody help me to figure out how to calculate XOR between each pairs of integers (i, j) such that 1 ≤ i ≤ j ≤ N?

Tags hackerearth, xor, practice

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English coderbond007 2017-05-05 17:03:10 393 Initial revision (published)