Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a07f60f

Browse files
check if a number is power of 2
1 parent 0857a8b commit a07f60f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

‎Bit Manipulation/CountBitsToFlipToconvertAtoB.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ int main()
2626
{
2727
cout<<CountFlip(7,10);
2828

29+
2930
return 0;
3031
}

‎Bit Manipulation/PowerOf2.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include<iostream>
2+
3+
using namespace std;
4+
5+
//program to check if an integer is power of 2
6+
7+
int main()
8+
{
9+
10+
11+
return 0;
12+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /