Minimum Bit Flips to Convert Number

Easy · Bit Manipulation · about 5 minutes

Asked at Google, Amazon, Microsoft, Meta.

Return the minimum number of single-bit flips to convert start into goal.