Skip to content

Commit 7568ccb

Browse files
committed
.
1 parent e9af9bb commit 7568ccb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Easy/342_Power-of-Four.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include "../Header.h"
2+
3+
using namespace std;
4+
bool isPowerOfFour(int num) {
5+
int n = 1;
6+
while (n) {
7+
if (n == num) return 1;
8+
n <<= 2;
9+
}
10+
return 0;
11+
}
12+
int main(int argc, char const *argv[])
13+
{
14+
return 0;
15+
}

0 commit comments

Comments
 (0)