004. Technical interview question: Swap two numbers without using a third variable

a = a + b;
b = a - b;
a = a - b;
or
a = a + b - (b=a);
Watch all videos like this

Leave a Reply

Your email address will not be published. Required fields are marked *