we can take the end to be half of that number
and take the case of one differently. right?
Square root using binary search
@arya_31
You can do that. But you would hardly save one single iteration. The overall complexity would still remain same and saving one single iteration wouldn’t make much of a difference.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.