i know that xor operator returns true if both its input differ but with this knowledge i cant understand various coding problem across the internet. like these:
https://www.hackerearth.com/february-easy-16/algorithm/utkarsh-and-sub-array-xor-february-easy/
https://www.hackerrank.com/contests/hourrank-5/challenges/xor-se
pls help me understand these. btw i use c++ for coding. explaining how to use XOR operator in these will be enough, no need to explain the full question.