Write pseudocode to swap two numbers without third variable .
Anonymous
solution is to use the XOR method (addition method will cause integer overflow for big values) a = a ^ b b = a ^ b a = a ^ b
Check out your Company Bowl for anonymous work chats.