DEV Community

Discussion on: An Algorithm to Swap Two Variables Synchronously, Without Creating a Temporary Variable

Collapse
 
gdledsan profile image
Edmundo Sanchez

It might be some close to metal thing that needs to happen in metofs we use daily.

I can see the benefit of not needing to reservu, use and clean up some variable, remmber io ooerations are slower than just adding and subtracting.