I tried to solve the problem sumset by the idea of coin change. But i am getting Run time error.I know there's an another way to solve the problem. As I am new to dp i am facing difficulties to think how to approach this problem. sorry for bad english
Problem description : how many ways to get the number 1<=n<=1000000 by the sum of 2's power.