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.

评论

此博客中的热门博文

776. Split BST

42. Trapping Rain Water

437. Path Sum III