/* Description: A program to find target sub string in given string Approach: Using sliding window technique to compare every possible substring with the target string. It also supports variable length target inputs since we are initialising window size with size of target Time complexity: O(n) */ #include #include using namespace std; void sliding(string s,string target){ int window_size=target.size(); bool notfound=true; for(int i=0;i>target; sliding(s,target); return 0; }