Welcome to MindCipher, a social repository of the world's greatest brain teasers, logic puzzles and mental challenges.

Chaitanya Dwivedi

Likes 0

Chaitanya Dwivedi must be new here...

Ratings 0

No ratings yet!

Comments 1

Swap Variables in Place without XOR

a = a+b b = a-b a = a-b

Example: a = 7 b = 3

Example: a = 7+3 = 10 b = 10-3 = 7 a = 10-7= 3

context