how to compare these strings.
String window challange 1
Use hashing and sliding window technique to solve the above problem. Initially keep the count of all the characters of the given string in a hash. Now iterate in second string, once you get the count to be equal, start removing from the back to get the window size. Follow this and do it on pen and paper to get a better idea.
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.