Citadel interview question

swap a and b without the 3rd variable

Interview Answer

Anonymous

30 Dec 2022

Define (*) as state. Let A(2) be A-B. Let B(2) be A(2) minus B. Now B(2) is A. Then A(3) be B(2) minus A(2)