Loading...
Engaged employer
How to swap two numbers without using temporary variable?
Anonymous
Swap(a, b){ a = a+b., b = a-b a = a-b } That works fine for numbers and characters only for complex types that will not work.
Provided addition/subtraction and XOR solution. But they were still looking for something else.
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 personalised job recommendations and updates by starting your searches.