substring:
you are given two strings N &K your goal is to determine the smallest substring of N that contains all the characters in K If no substring present in N print No matches found
note: if a character is repeated multiple time in K your substring should also contain that character repeated the same no.of times
i/p:the 1st line input two strings N&K
input:
stealen lent
o/p:
tealen
i/p:
tomato tomatho
no matches found
Comments