why we are doing ans=ans-inc in the code
Square root using binary search
@mohitshendre2609 because the while loop ends when the condition is false, which means we need to go one step back to get the correct answer.
why we are doing ans=ans-inc in the code
@mohitshendre2609 because the while loop ends when the condition is false, which means we need to go one step back to get the correct answer.