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.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized 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.