unable to figure out the implementation of solution in editorial
Unable to figure out the implementation of solution in editorial
Algorithm we use:
- first find the subarray which contains all elements in the string2.
- Now we try to minimise this subarray from the start. How ?
we keep removing the element we dont need from the start. - When youu are done with the 2nd step, update your answer.
- Now repeat the first step by moving forward in the string1.
Now try to implement your code 
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.