Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a program to find the number of distinct binary representations of all integers from 1 to n.

Run the code to see the output here...