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.

评论

此博客中的热门博文

663. Equal Tree Partition

776. Split BST

Sort Colors II