1. 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.

  2. Hamming Distancehistorical

    The Hamming distance between two integers is the number of positions at which their corresponding binary bits are different.