Number Of Flips Required To Make a|b Equal to c

If you understand the OR operations clearly, then this problem will be a good challenge for your skills. Make sure you have a clear understanding of OR before moving on.


In this question, we will flip the bits to make two numbers equal to the third number.

Let’s see how to achieve this using the OR operator.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.