0461. Hamming Distance
https://leetcode.com/problems/hamming-distance
Description
The Hamming distance between two integers is the number of positions at which the corresponding bits are different.
Given two integers x
and y
, return the Hamming distance between them.
Example 1:
Example 2:
Constraints:
0 <= x, y <= 231 - 1
ac
Last updated