Amazon SDE 2 nterview question
Anonymous User
1719

Print the minimum length substring which contains all characters of pattern in the same order of pattern
S = "hi this isnt test"
P = "is test"

output -
2 possible cases "isnt test" and "is isnt test". output should be the smallest one
i.e: "isnt test"

Note : I think this is different than this question as here they are asking to keep same order of pattern https://leetcode.com/problems/minimum-window-substring/

can someone please share your thoughts

Comments (4)