Comparator function

I am unable to get the output on 2nd test case. Although i think that my comparator function is working fine.

hi @pandeykshitiz05_0ec52bd954a1fc73
refer this -->


mismatch will take smaller string then larger string and checks if smaller is a part of larger string or not. In the if clause I am considering s1 to be smaller string and then whether it is a subset of s2 or not.

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.