Swap two numbers without a third variable; is it efficient? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 1
Duplicate post. šŸ˜¶
23rd Jul 2017, 5:50 PM
Rrestoring faith
Rrestoring faith - avatar