A Very Easy Problem! - Help required

Can someone post the algorithm for solving this problem ?

power of 2

2 Likes

@empty_life i dont think so that there exists any algorithm for this problem as you can see this problem is input specific.you can develop your own algorithm and for reference you can check out some submission i believe ,definately some of them contains code for generating answers rather than just output.

Okay , i get it. if there is 2(2) it should be decoded to 2^2.
The idea in this problem is to represent each number as maximal powers of 2.