Sqrt(x)

Implement int sqrt(int x).code Compute and return the square root of x.io Solution:class class Solution { public: int sqrt(int x) { int left = 1, right = x; while(left <= right)
相關文章
相關標籤/搜索