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


Likes 0

Cddc must be new here...

Comments 1

Swap Variables in Place without XOR

a = (a + b)/2 b = a - b

a = a - b b = a + 2b

Another messy solution, but works.