Not able to solve the questino


this is my code plz tell the problem in it. And i think maybe i am not able to understand the question properly so can you plz give me an example to explain it.

@Akshita99 https://www.youtube.com/watch?v=TC6snf6KPdE
Please refer this video. It is nicely explained here.

Hope this helps :slightly_smiling_face:

https://ide.codingblocks.com/s/174713 sir this is my code. please check which case is not working. all test cases passed except test case 0

@Akshita99 Replace line 36 with int s=0,e=a[n-1],mid; and then check.