Knuth–Morris–Pratt algorithm: Difference between revisions

Content deleted Content added
Ryan Reich (talk | contribs)
m Another one.
Ryan Reich (talk | contribs)
Line 164:
++i;
} else if (j > 0) {
j = T[j - 1];
} else {
T[i + 1] = 0;
Line 170:
j = 0;
}
c = TP[j];
}