@ninijiaLeetcode每日一题练习 ------ 2220. 转换数字的最少位翻转次数 中发帖

从Leetcode 每日一题练习继续讨论: 
2220. 转换数字的最少位翻转次数
2220. Minimum Bit Flips to Convert Number
题解
本题是一道简单题, 对两个数进行异或操作会使得两个数二进制位上数字相同的位变为0, 数字不同的位变为1, 则进行异或后统计有多少个1即可, 本题大概是让人了解一下异或操作.
代码
func minBitFlips(start int, goal int) int {
// XOR the two numbers to get the differing bits
diff := start ^ goal
count := 0

// Count the number of 1's in the XOR result
for diff > 0 {
count += diff & 1
diff >>...