Bit flip - Find bit flip between two numbers

Given two integers a & b, determine how many bits need to be flipped in a to get the integer b Input : 10 25 Output : 3 Input : 109 275 Output : 7

Answer

No comments:

Post a Comment