OpenGenus/cosmos

Check whether a number is a power of 2 using bit manipulation

Open

#1,297 opened on Oct 12, 2017

View on GitHub
 (6 comments) (0 reactions) (2 assignees)C++ (3,724 forks)batch import
Hacktoberfestadd codenew algorithm

Repository metrics

Stars
 (13,462 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

To check efficiently whether a number is power of 2 using bit manipulation

Contributor guide