Loading...
Engaged Employer
Swap 2 integers without using a temp variable.
Anonymous
He asked me to come up with a method other than bit manipulation.
public void swap(int x, int y) { x = x + y; y = x - y; x = x - y; }
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.