Different approach

Can you send me the XOR approach with inbuilt XOR function?

Hello @priyamthakuria27,

Required Code:

Let me know if you face any issue.

BTW, using inbuilt XOR function won’t help.

You can study it here:
http://www.cplusplus.com/reference/functional/bit_xor/

Cool. Thanks.
what are the other bit-manipulation methods?

why won’t it help? did not get it.

Hello @priyamthakuria27,

You can refer to this link:

BTW, there are many methods explained in your course itself.

why, wont it help? please explain.

Hello @priyamthakuria27,

Because bit_XOR takes only two variable at once and
you have to just use it in place of the statement where you have doing xor using ^.

So, it will just increase the time by adding the calling and return time of the function.

So, using it would not increase the efficiency.

Hope, it is clear now.