if n & n-1 = 0 then its power of 2.
I was asked this questions in of the interviews long time back :)
if n & n-1 = 0 then its power of 2.
ReplyDeleteI was asked this questions in of the interviews long time back :)
ReplyDelete