Swap two numbers without a third variable; is it efficient? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 1
Duplicate post. 😶
23rd Jul 2017, 5:50 PM
Rrestoring faith
Rrestoring faith - avatar
Aujourd'hui en vedette
Help
0 Votes
help
0 Votes
About code
1 Votes
Recursion
0 Votes