filmov
tv
How to find XOR of two numbers without using XOR Operator - Bit Manipulation Interview
Показать описание
In this video, we are going to develop an algorithm that finds the XOR of two numbers without using the XOR operator and implement it in C/C++. For this, we will use the concepts of Bit Manipulation. This is a common interview question for embedded / software / firmware roles.
This algorithm turns out to be really elegant, and we see symmetry in the relationship between XOR and other bit operations such as AND, OR, 1's Complement Inversion, etc.
See Bit Manipulation Interview Preparation Series here:
You could follow us on Facebook and Instagram:
#bitmanipulation #bitalgorithm
This algorithm turns out to be really elegant, and we see symmetry in the relationship between XOR and other bit operations such as AND, OR, 1's Complement Inversion, etc.
See Bit Manipulation Interview Preparation Series here:
You could follow us on Facebook and Instagram:
#bitmanipulation #bitalgorithm