Skip to content

Instantly share code, notes, and snippets.

@ceme
Created December 4, 2022 20:51
Show Gist options
  • Save ceme/b2908fc7f86d6c4200787a8495e4b206 to your computer and use it in GitHub Desktop.
Save ceme/b2908fc7f86d6c4200787a8495e4b206 to your computer and use it in GitHub Desktop.
Swap two variables without a third
a = a^b
b = a^b
a = a^b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment