Skip to content

Commit fa6fb3a

Browse files
committed
367
1 parent 8155611 commit fa6fb3a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

367(a).cpp

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class Solution {
2+
public:
3+
bool isPerfectSquare(int num) {
4+
5+
long long int y=sqrt(num);
6+
long long int z=y*y;
7+
8+
if(z==num){
9+
return 1;
10+
}
11+
12+
return 0;
13+
}
14+
};

0 commit comments

Comments
 (0)