employer cover photo
employer logo
employer logo

SolarEdge Technologies

Is this your company?

SolarEdge Technologies Interview Question

How to change between 2 variable values without a third variable

Interview Answer

Anonymous

Dec 5, 2021

The idea is to get a sum in one of the two given numbers. The numbers can then be swapped using the the sum & subtraction from the sum. Example: Given two var: x,y x=x+y y=x-y x=x-y