Given an array where all numbers occur twice, except two numbers that do not repeat, we learn how to find out those two numbers using bit manipulations. This is a common interview question for software/firmware/embedded roles that tests your concepts of XOR and Bit Manipulations.
Unset all bits except rightmost set bit in a number : • How to Unset all bits except the righ...
See Bit Manipulation Interview Preparation Series here:
• Bit Manipulation Interview Series
Optimized method of counting Set Bits in a number: • How to Count Set Bits in a Number : M...
You could follow us on Facebook and Instagram:
Facebook : / firmwarecode
Instagram : / firmwarecode
#bitmanipulation #bitalgorithm