You are viewing a single comment's thread. Return to all comments →
I understand 2 ** (number of zero) because each 0 has two posibilities- either 0 or 1. But, can someone help understand why it covers the case
num ^ 0 = num + 0?
Thanks a lot
Seems like cookies are disabled on this browser, please enable them to open this website
Sum vs XOR
You are viewing a single comment's thread. Return to all comments →
I understand 2 ** (number of zero) because each 0 has two posibilities- either 0 or 1. But, can someone help understand why it covers the case
num ^ 0 = num + 0?
Thanks a lot