Skip to content

Commit 5e511f5

Browse files
committed
Adds sqare root solution
1 parent 1b7f232 commit 5e511f5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ My solutions to competitive programming problems in [Geeks for Geeks](https://au
390390
|Convert Celsius To Fahrenheit|[C++](c++/c-to-f.cpp)|
391391
|Count numbers divisible by M|[C++](c++/count-numbers-divisible-by-m.cpp)|
392392
|armstrong-numbers|[C++](c++/ambstrong.cpp)|
393+
||Sqare root[C++](c++/sqare-rooot.cpp)|
393394
|automorphic numbers|[C++](c++/automorphic-number.cpp)|
394395
|For loop prime check|[C++](c++/for-loop-prime-check.cpp)|
395396
|Int-to-binary|[C++](c++/int-to-binary.cpp)|

c++/sqare-rooot.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// https://practice.geeksforgeeks.org/problems/square-root/1/?track=SPCF-Searching&batchId=154
2+
long long int floorSqrt(long long int x)
3+
{
4+
return floor(sqrt(x));
5+
}

0 commit comments

Comments
 (0)