Yes, indeed, that's a nice trick for swapping. It's always better to bring such kind of alternative solution on real interviews, thanks for suggesting that.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You can do swap better with XOR operator tho.
Yes, indeed, that's a nice trick for swapping. It's always better to bring such kind of alternative solution on real interviews, thanks for suggesting that.