Please help me to built this recursive function here is my code:-

Hello @anshulgurawalia check this is the corrected code:
https://ide.codingblocks.com/s/431382
Happy Learning!!

why this code is printing false in every case :-

@anshulgurawalia i have corrected this code and commented the mistake:

now its not passing test cases

@anshulgurawalia small silly mistake:
https://ide.codingblocks.com/s/431389

i have to give space while taking the input in array ??

there is wastage of time while writing in chatbox can i get your mobile number please ??

@anshulgurawalia you dint have to give spaces while taking input the inout file is preordered accordingly.

i am not able to correct my code

@anshulgurawalia i have already given you the correct code and that is passing all the test cases.
check this:
[https://ide.codingblocks.com/s/431389]

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.