Count total set bits in all numbers from 1 to N

1 min read

https://practice.geeksforgeeks.org/problems/count-total-set-bits/0

Count number of bits to be flipped to convert A to B
Check if a number is a power of 2