461. 汉明距离 - 力扣(LeetCode)

461. 汉明距离 - 力扣(LeetCode)
https://leetcode-cn.com/problems/hamming-distance/

异或之后, 通过模2判断最后一位是否为1。然后除以2进行移位。

 

posted @ 2020-06-29 09:46  YITTT  阅读(24)  评论(0)    收藏  举报