WD Interview Question

Write a code for deciding if a number is power of two?

Interview Answer

Anonymous

Jul 4, 2020

Using normal for loop or can be done using bit manipulation as well in a single line.