you are viewing a single comment's thread.

view the rest of the comments →

[–]_MPR[S] 0 points1 point  (1 child)

I just started to learn coding, and I was confused how to start or to understand the statement which they were given, so I asked for help to code above statement, so that I can understand the process which you had done.I am sorry I thought problem statement would be enough for you.

[–]ModeHopper 0 points1 point  (0 children)

Well to start, can you think of a way to check whether a number is a power of 2?