here is my code --> https://ide.codingblocks.com/s/452110
Sir, where am i doing mistake?
sir, please help me to find out my mistake.
ll int mid = (s+e)/2;
while(s<=e) {
}
mid should be calculated inside for loop
so that is evaluated in each iteration
Sir, can u please send me the solution ?
reference code
sir, why did u use “int32_t main()” ?
as i am declaring int as long long int
but main should return int
hence i have to return int_32t
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.