Count total set bits in all numbers from 1 to n [Amazon ]

Problem:

Find the sum of all bits from numbers 1 to N.

 

Comments are closed.