Sqrt(x) II

why end<1.0? then end=1.

if so, mid*mid will always less than x. then result will be very close to x.
but the actual result is lager then x.

评论

此博客中的热门博文

42. Trapping Rain Water

776. Split BST

515. Find Largest Value in Each Tree Row