Doubt in the question

Can you clear me if it is compulsory to include all the elements while taking xor or we can exlude some elements.

hello @vageesha

a subarray is contiguos section of array .
for this problem u need to pick two subarray ,they should not overlap with each each other succh that their sum of xor of both subarray is maximum.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.