Skip to content

Latest commit

 

History

History
3 lines (3 loc) · 207 Bytes

SquareRoot.md

File metadata and controls

3 lines (3 loc) · 207 Bytes

I used binary search in order to find closest square root of a given number. Binary search takes O(logn) time Space Complexity is O(1) since the program uses the same set o variables (square,mid,low,high)