Loading...
Is this your company?
Swap two numbers while not using the temp variable.
Anonymous
a = a+b; b = a -b; a= a- b;
using the XOR operator
a = a ^ b b = a ^ b a = a ^ b This will avoid over flows which might come in addition steps
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.