Xor circuit codechef dp

if ( i == n )
return (xo==0);

How can this be ever true since all v,u <=n-1

The problem solution video is very confusion it would be great if you explain the basic idea again in detail (or in brief)

The logic behind this is explained in the tutorial video, Please go through it twice. I understand the explanation is bit difficult but i highly recommend you to watch editorial twice again.
I am forwarding your request/feedback to the mentors.

1 Like

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.