Window Substring problem


I have not passes all the test cases? whats the error?

hello @samardeep
please explain what u want to check in this line->

 	if( m2.find(s1[i])!=m2.end() and m1[s1[i]]<=m2[s1[i]]){
			count++;
		}

i will start contraction if my count is equal to l2; and there i am checking if m2 has element which is in m1 and count of that element in m1<count of that element in m2 then i will increase the counter variable

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.