https://ide.codingblocks.com/s/444360,
bhaiya please check this code ,what is problem in this?
bro getline use karo kgunki single line me ek se jayda word ho sakte hai
ha ruko dekhta hu, thoda time lagega
koi baat ni bhaiya bta dena jab time mile
ho gya bro->
line 54 me tum
temp=str[temp]; kar rahe the
jaki
temp=str[start]
karna tha
bhaiya ye jo line no 58 hai -> window_len=i-start+1; , maanlo abhi jo count hai vo hamari patternlength ke equal nahi hua, ye tb bhi execute hoegi , jese maanlo abhi i=1 hai to abhi count equal to nahi hua patternlength ke lekin jo window_len hmari ho gayi (1-1+1) =1 , to ye min_window se kam hai to min window update ho gyi =1 , to fir 1 length se jyada to koi output aayegi hi nahi ?
isiliye to usko if statement ke andar rakha hai taaki aisa na ho.
if(cnt==patternlenght){
yaha pe check aur update kar rahe hai
}
dhyan se dekho code ekbaar
Ohkay ohkay , aa gya bhaiya samajh, dhanyavaad ji 
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.