You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran the kmp function on the following strings-
p="wa" and t="swapwap"
The function returned 3 and 6 as positions but according to 0-based indexing as mentioned, it should return 2 and 5.
So i think you should change the description or i-l should be i-l-1
The text was updated successfully, but these errors were encountered:
I ran the kmp function on the following strings-
p="wa" and t="swapwap"
The function returned 3 and 6 as positions but according to 0-based indexing as mentioned, it should return 2 and 5.
So i think you should change the description or i-l should be i-l-1
The text was updated successfully, but these errors were encountered: