位
Data Structures & Algorithms · 2 notes
- Counting Bitshistorical
Given a non-negative integer num. For every number i in the range 0 ≤ i ≤ num, calculate the number of 1s in its binary representation and return them as an array.
- Hamming Distancehistorical
The Hamming distance between two integers is the number of positions at which their corresponding binary bits are different.