How to swap 2 numbers without a 3rd variable?
I'm trying to understand how to swap two numbers without using a third variable. I’ve heard it’s possible through arithmetic or bitwise operations, but I’m unsure of the exact steps. What’s the best approach to swap values efficiently without needing extra storage?