TIme Limit Error i am getting Please Help me out how to deal with this type of situation
Hello @mohsin_khan your approach is fine.
but where you are submitting it i mean the question must be having large contraints that is why it is giving TLE.
could you please tell me what question you are doing.
i will tell you how you can optimise it.
Happy Learning!!
I am trying to find square_root by binary search during float value return I am getting an error
Hello @mohsin_khan could you please tell the question name dear beacuse your code is running fine may be it is falling for large test cases only.
the question is just finding the sqaure root by binary search at 3 decimal point
The approach which you have written in the above loop for intgers is coret and producing the correct result.
but the below for loop appraoch is wrong every time you are trying to divive inc variable and that is making it more small ans it is giving tle then.
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.