Is a Given Number the Power of 2? by@ggorantala
565 reads
565 reads

Is a Given Number the Power of 2?

by Gopi Gorantala6mMarch 11th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this lesson, we will try to check if the given number is a power of 2. We solve this by writing an efficient algorithm that takes an optimal amount of time. Introduction Let’s do another challenging question to check your understanding of Bitwise operators.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Is a Given Number the Power of 2?
Gopi Gorantala HackerNoon profile picture
Gopi Gorantala

Gopi Gorantala

@ggorantala

I had roughly 10 years of experience under my belt -- working in Belgium for half a decade.

About @ggorantala
LEARN MORE ABOUT @GGORANTALA'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Gopi Gorantala HackerNoon profile picture
Gopi Gorantala@ggorantala
I had roughly 10 years of experience under my belt -- working in Belgium for half a decade.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!