The code is displaying output for only one case while I’ve given q times input
ie. for q=3
I give input as 2,3,10 but the output is only shown for 2. Why is it so?
Code https://ide.codingblocks.com/s/120375
Doubt in upper and lower bound
@ratulhans you should use binary approach for better result which is taught by bhaiya and do dry run with your code.
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.