Test cases are giving TLE error

My code is - https://ide.codingblocks.com/s/338444

hello @sukritbansal01
a)
image
start i from s.

Starting i from s is correct but that mid statement you are telling me is wrong

Thanks though for helping me out

yeah sorry about that, acutally i didnt notice that u r shifting mid by s after calculating (e-s)/2 my bad

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.