sir ,here why in the for loop the condition was i+4<=n…
not (i+3)<=n?
because we took the first character in the consideration in (i) and remains 3 chars only?
String matching
hello @mzk1994
the last 4 length substring wil be start at n-4 right?
[n-4,n-3,n-2,n-1] so that is why we have written i+4 <=n
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.