Regarding the end point in the question

in the video when mid*mid>no{end=mid-1} but it won’t cover all the cases like if no =20 then we would’t be able to find the square root of 20 because the end will come at 4 and start will be at 0 and then in this case after some time start > end and the loop will terminate. So kindly check.