Loading...
Engaged Employer
Swap two variables without using a temp.
Anonymous
in c/c++: x^=y^=x^=y;
a= a*b; b = a/b; a = a/b;
+/- is correct even with overflow
You don't want to use +-/* as you might face under/overflow.
Can be done using adding/subtracting, multiply/divide, xor.
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.