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; }
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.
Get actionable career advice tailored to you by joining more bowls.
Check out your Company Bowl for anonymous work chats.