0

Swap two numbers without a third variable; is it efficient?

Have you seen this short, brilliant code? https://code.sololearn.com/cN6UGN19SXpU/#cs I think it's smart. but how about its performance? Wonder the difference between this code and traditional code with third variable, when translated in a assembly code

23rd Jul 2017, 4:55 PM
dd jj
dd jj - avatar
1 Answer
+ 1
Duplicate post. đŸ˜¶
23rd Jul 2017, 5:50 PM
Rrestoring faith
Rrestoring faith - avatar