please check my code of this why i m getting tle in this?https://ide.codingblocks.com/s/279691
PRATHA(binary SEARCH)
In the while loop you are creating a new variable which is a local variable and is not changing tha actual value of e. So dont take int e = mid-1
Instead take e= mid-1. Also you have taken end =100 as a intiaial value change it to 10^9.
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.