Please help me with the concept of this problem

i tried but i dont think i shoud spend more time on it

Hello @sid.rajput23 you have to think of any approach:
like you can do the question in this way:


dry run of the code:

if you have any doubt you can ask here:
Happy Learning!!

1 Like

i got the code but still i am not able to get the concept
or thinking
and i also want to know how did you think to approach this question??

Helo @sid.rajput23 this you will get with the practice and practice.
i have given you the complete dry run of the same code as well.
you can see that.
Happy Learning!!

1 Like

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.

1 Like