In the Pair class, implement the swap method, which should swap the values of x and y. You can only use the following operations: 1) Exclusive or. 2) Assignment. 3) Exclusive-or assignment. Don't leave any comments. Don't change the rest of the code.
A new way to swap
You must be signed in to leave a comment
This page doesn't have any comments yet