Minimum-window-substring


all testcases are not passing

Hey @nmaurya760 i have debugged your code here : https://ide.codingblocks.com/s/331266 but after using the correct implementation you will fail again because the test case design in this leetcode challenge is not appropriate as per the questions explained in video. For understanding what this problem wants from you, have a look at here https://ide.codingblocks.com/s/331262
Hope this code will help you :smile:

i am not understanding what corrections u have done in my code… where i have done +=1, u have done ++ rest i could not find any difference also the code u wrote issimilar to whai i have done just the difference is that u hav use unordered map and i have use array but both of them are doing the same work

hey @nmaurya760 you have applied if condition in your while loop at line number 25, whereas in the code given by me , you can see i have applied different operation. Moreover the ideal solution which i have given to you at https://ide.codingblocks.com/s/331262 works on STL i.e., less chance of getting run-time error . Hope you will find out :smile:

@nmaurya760 i guess Encoder has solved your doubt,but if you have any further queries let me know.

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.