String Window-Unable to understand the Code

unable to understand the solution code https://ide.codingblocks.com/s/65183 Problem is string window

Hi

Try this as hint:

Essentially you have a start and end pointer starting from the beginning of the string. You keep moving the end pointer and including more characters till you have all the characters of T included. At this point, you start moving start pointer and popping out characters till the point that you still have all the characters of T included. Update your answer and keep repeating the process

Hit like if you get it! :stuck_out_tongue:

Hey Tushar, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.