xor swap algorithm
The XOR swap algorithm is a bitwise operation used to swap the values of two variables without using a temporary variable. It involves using the XOR (^) operator to flip the bits of the variables, allowing for a swap without additional memory usage.
Requires login.