Alyona and strings

can you please tell why are we doing rem-1 if cont==1 in a function call bcoz cont==1 means we want to continue then why will we reduce the rem value and at the same time no doing rem-1 when cont==0 bcoz that would mean that we want to terminate this subsequence now??

Could you please mention the code snippet of what you are having the doubt in?

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.