Ayush7614 / Ayush7614/Daily-Coding-DS-ALGO-Practice

Bit Manipulation: Brian Kernighan's Algorithm

Open
#761 5 comments 0 reactions 2 assignees Assigned to @mitali-1703 View on GitHub
LGMSOC21 🟨 Level2
Dominant language
C++
Stars
323
Forks
472
PR merge metrics
No merged PRs in 30d

Description

# Aim

- To check if a given number is a power of two.

# Details

-Given a non-negative integer N. The task is to check if N is a power of 2. More formally, check if N can be expressed as 2x for some x using bit manipulation.

### Programming language
C++

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.