Plz check what is the mistkae

link https://ide.codingblocks.com/s/457609

hello @mohitsingh

can u explain the while part of ur code.
what exaclty u r trying there

in first while loop i am acuiring the characters till the length of s2 and the i am releasing cnt==desired cnt and when i dont go to any of the loop i break and come out of the loop

@mohitsingh

not getting ur code implementation.
pls cross check with this.

i want to check my errors please i=-1 ans s1.length()=19 why it is not entering the loop

what input u r giving?

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.