Count maximum number of consecutive 1's in binary number
Pseudocode implementation for the above problem is as below.
- Step 1: while number > 0
- Step 2: number = number & (number << 1)
- Step 3: increment count by 1
Pseudocode implementation for the above problem is as below.