IntermediateRating 1100
Bits to Flip
How many bits must be flipped to turn a into b?
Input
Two non-negative integers a and b (up to 10¹⁸).
Output
One integer.
Sample 1
Input
10 7
Output
3
Sample 2
Input
3 4
Output
3
Output appears hereTwo non-negative integers a and b (up to 10¹⁸).
One integer.
10 7
3
3 4
3
Output appears here