Created
June 13, 2018 12:07
-
-
Save varun93/a7e25aacc7315ce3a5fbbcc7614d237b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const swapWithoutTemp = (a, b) => { | |
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