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

663. Equal Tree Partition

532. K-diff Pairs in an Array