One testcase is not working ...can you figure out the problem in this code?


please give the explaination of any error if there in my program

@Ignitor hey kartik I think bhaiya cover the implementation of this question ?

sir i know that but i have done it in a little different way so can you please check my code for any loopholes or so since my one testcase is not working

@Ignitor hey kartik check for this case like
3 9 -1 -2
your output is true
but it should be false.

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.