PayPal Interview Question

How to swap 2 nums by bit operating

Interview Answers

Anonymous

Nov 14, 2019

a = a ^ b; b = a ^ b; a = a ^ b

Anonymous

Dec 15, 2020

In these sorts of interviews you really need to drill down and understand what the interviewer is looking for. A good way to simulate a real interview experience is to do a mock with one of the PayPal Software Engineer(Internship) experts on Prepfully, rated super strongly on TrustPilot... prepfully.com/practice-interviews