Topic: Bit Manipulation Problem / Level: intermediate

Problem: Write a program that calculates the total number of distinct integers that can be represented using k bits.

Run the code to see the output here...