Regarding clearification of question

if there is space between given subarray then we have to print space or not?

Hello @anand_54 the minimum length string window you have to find for the given pattern and if with the space you are getting the min length substring then yes you have to print the space.
Happy Learning!!

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.